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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement