Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a form as a class
Message
 
À
04/01/2000 10:37:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00312434
Message ID:
00312441
Vues:
17
You start by by issueing this command:

Create Class

You then specify that you are going to create a class based on either the form base class or another form subclass. For simplicity, lets keep it with the form base class. Also, you need to specify the name of a visual class library (VCX) that your form class will be stored in...

At this point, you are working with the form designer...

Next, in your app, you should to have code like this:

Set Classlib to mynewclasslib.vcx && or whatever you called the VCX.

Alternatively, you can use the NewObject() function, and specify the VCX without having used Set Classlib...

If you only used Set Classlib , you need code like this to instance the class:

oForm = Createobject("mynewform")
oForm.Show && Modeless
oForm.Show(1) && modal

Hope this helps to get you started...

>I'm trying to develop a form that can be called from within anywhere in my application. I need for it to be a class. Can anyone help me in how to figure this out? I know it's something simple. Oh, I'm working in vfp 6.0
>
>TIA
>
>Jeff T.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform