Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to create a class
Message
 
À
27/11/2001 16:19:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00586547
Message ID:
00586679
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>How would I achieve the same results WITHOUT using a .prg file? I want to create the class add properties and methods and refer to the class not a prg. When I tried putting the procedure statements in the methods of the class I got a bunch of errors.

Make sure you don't include the proc...endproc lines. To add the Add method do the following:

Add the Add method to the class and add the following in the method:
	WITH this
		.ddate = {}
		.cclient = ""
		.cservice = ""
		.cdescription = ""
		.nhours = 0.00
		.nrate = 0
		.namount = 0
		.cemployee = ""
	ENDWITH
hth
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform