Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert Class/Form to PRG
Message
From
26/04/2000 03:18:08
 
 
To
26/04/2000 03:01:19
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00363126
Message ID:
00363470
Views:
15
After reading the entire thread, I need to clarify. Using the Class Browser to generate code from classes that have containers isn't runable. The ADD OBJECT.CONTROL.CONTROL.CONTROL is bogus.

But for classes that have no containers, all you have to do is add:
PUBLIC ox
ox = CREAT([foo]) && Where foo is the class you want to instantiate.
ox.SHOW
after the initial comments for the code to run.

Dave

>They can be run, but you have to add:
>
>
>PUBLIC ox
>ox = CREAT([foo]) && Where foo is the class you want to instantiate.
>ox.SHOW
Dave
>
>>>>The class browser allows you to "View Code" but this code can be unreliable, particularly when containership is involved.
>>>
>>>Really? I know when I have say command buttons on a form class, the add object stuff isn't runable (like you said), but when else?
>>
>>Hi Mike,
>>
>>I havent gone much farther than dealing with the fact that composites cant be run.
>>
>>Rick
Previous
Reply
Map
View

Click here to load this message in the networking platform