Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a class from a form
Message
 
To
05/06/2001 14:39:36
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00515316
Message ID:
00515322
Views:
16
>Hi. This is basic, but it still baffles me.
>How do you call a class from a form? I have a form and I want to pop up a class that I have written to accept data entry.
>
Randy,

Create the object with CREATEOBJECT() or NEWOBJECT(). Call the object's Show method (using Obj.Show(1) so that the form's modal). Then check to make sure it's not null and retrieve the value. Optionally, you could create a form from the class and return the variable via DO FORM...TO...
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform