Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to create a class
Message
 
To
27/11/2001 16:19:42
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00586547
Message ID:
00586679
Views:
11
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform