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:
00271392
Views:
16
>>>>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()
>
What I want is to be able to take a form that is a class, do a search and replace, and create a new form with the new values. So, I created a form visually and saved it as a class. Then I created the code from the class which I figured I use to do the search and replace and then generate a form from the code. Is there a better way?
DLC
"Use the Right Tool for the Job!"
davidandcynthia@email.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform