Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Classes with code
Message
From
28/12/1998 01:13:37
Anthony Test
Microcomputer Engineering Services, Llc
Huntington Beach, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Creating Classes with code
Miscellaneous
Thread ID:
00170664
Message ID:
00170664
Views:
60
I've just started to try making a class via code. My idea for a 'baby' project was to create a form with a couple of buttons that would call me code created object. The following is the code I have written to create the calling object. (I've named it Test.prg)
Define Class Junk as Custom

	Function Say_Hello
		wait window 'Hello'
	End Function &&-- Say Hello

	Function Say_Goodbye
		Wait window 'Good Bye'
	End Function &&-- Say Good Bye

EndDefine
Now whe I run this code what is happening? I was thinking that a junk.vcx would appear on my hard drive, so I could add it to my project no such luck. So please tell me oh-wise ones what should I be doing to get this to work?

Thanks in advance.

Anthony
Next
Reply
Map
View

Click here to load this message in the networking platform