Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About Class
Message
 
À
30/09/2004 23:56:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00947820
Message ID:
00947831
Vues:
14
>anybody could help me please... i'm new in programming visual foxpro 7.0... how could i design my own class... i appreciate so much your help, thank you...


There are two ways, visual and no visual:

1. Visual Designing:

Open a project
Go to "Classes" Tab
Push the button "NEW"
Enter the class name
Select the Base class of Your new class
Select the name of the VFP class library
Press OK
Add methods, properties etc. of Your class


2. Non Visual way:

Create a PRG file & add it in Your project
Open PRJ file and then type in it somethink like this
DEFINE CLASS MyClass AS CheckBox && See Help for more
     propertie1 = .f. && Add a properties of Your class here
     propertie2 = 0
     propertie3[2]

     PROCEDURE MyCustomMethod(par1)
** Do Whatever You want
     ENDPROC
....

ENDDEFINE
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform