Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make a .vcx file of a .prg file ?

Status
Not open for further replies.

Qwark

Programmer
Sep 26, 2000
59
NL
Hello,

I have a .prg file with the next code:

DEFINE CLASS iniaccess AS custom
<a lot of properties>
<a lot of procedures & functions>
ENDDEFINE

Can I make a .vcx file of it, with an converting program.



Jeroen.
 
Jeroen,

I do not think so.

You can however turn a VCX into a PRG using the fabulous ClassBrowser.

HTH,

Weedz
veld4663@exact.nl
 
oIni=NewObject('IniAccess','MyPrg.prg')
oIni.SaveAsClass('MyVcx.vcx','MyClassName')

I havent used the SaveAsClass method much, so I cant comment too much on it's reliability.

For more info on its use, check out this KB article:
HOWTO: Save Properties Added with AddProperty() Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Hi Jeroen,

I have tried the SaveAsClass method. When using a visual class thatis, a class made in a VCX, the method works fine. But when the same class is defined as a code class, it generatesa a message that the class is based on a non visual class and cannot be created in a VCX.

BTW: what I usually do is design my classes in a VCX and turn them after the built, with a project hook and the classbrowser into code classes that are defined in one big FXP.

HTH,

Weedz
veld4663@exact.nl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top