>>>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()