Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About Class
Message
From
01/10/2004 02:15:38
 
 
To
30/09/2004 23:56:21
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00947820
Message ID:
00947831
Views:
16
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform