Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Form from class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00271236
Message ID:
00271385
Views:
22
>>>I created a form class and created the code that generated the class. I want to be able to do a search and replace and then generate a form from the new class. Any ideas on what I am missing on generating the form?
>>>TIA!
>>
>>Do Tools > Options > Forms from the VFP menu. Set the form class in the dialog box, then Save. In the command window CREATE FORM.
>
>Thanks. I actually want to create the form programatically. Which the help for CREATE FORM shows an option to specify which class.

David,

CREATE FORM is NOT the command you want, you want the createobject() function.
SET CLASSLIB TO MyLib.vcx
loForm = CreateObject("MyFormClass")
loForm.Show()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform