Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create Form Automatically
Message
 
 
À
15/07/1998 19:53:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00117923
Message ID:
00118093
Vues:
19
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform