Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VCX and SCX to code
Message
From
01/06/1997 03:34:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
27/05/1997 13:10:23
Bob Lucas
The WordWare Agency
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00033650
Message ID:
00034411
Views:
38
> There is a program out 'somewhere' in the true.exe public domain stuff from > Tom Rettig that has a prg to vcx converter. I've seen it but I don't have > it (though I've been looking for it!). I know Rod Paddock has it because he > demonstrated using it at Foxteach but it was not included in his session > stuff. It would be VERY handy when modifying base classes and you decide > to a add a common property or method to ALL of your base classes and don't > want to go through the steps of the class designer. Cut and Paste in a PRG > file would be so much EASIER! > > Bob For a .prg to .vcx conversion, there's a simple way: in the .prg, simply put one Suspend after the object is instantiated. Jump to command window, and issue oVar.saveas("scx_file.scx") and there you are with a .scx - you can edit it later and SaveAsClass etc. Much the same way I solved some problems of having two or three form classes and I wanted to create new .scx using one of them. If I said "create form" it'd be based on the class written into wizard.dbf or somewhere. So I said (in the command window:) x=createobject("other_class") x.saveas("new_form") rele x modi form new_form ....and it worked.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform