Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Form Automatically
Message
From
16/07/1998 10:11:36
 
 
To
15/07/1998 19:53:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00117923
Message ID:
00118093
Views:
20
Save your form in a VCX. Run it, change the properties and then:
loForm.SaveAsClass("MyClassLib", .cProperty3, "Any Description you like")
The result will be a new form class in MyClassLib.VCX that is a subclass of myform with the properties set as they were in the "running" object.
HTH,
Ned
>I created a form class with 3 extra properties. I would like to allow the user to create a new form based on that form class by inputing the values for that 3 properties. So, what I need to do is to run a form asking the users to provide the information on the 3 properties and then create a new form with that 3 properties and save the form with a filename specified in one of the 3 properties.
>
>I tried the following code
>
>DEFINE CLASS myform AS myformClass
>property1=cProperty1
>property2=cProperty2
>property3=cFilename
>ENDDEFINE
>
>myform=CREATEOBJECT("myform")
>myform.Show()
>RETURN
>
>However, all I have is a "running form" and I cannot save that form. Can anyone help? Thanks.
Ned

Reality is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform