Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Classes with code
Message
De
28/12/1998 01:13:37
Anthony Test
Microcomputer Engineering Services, Llc
Huntington Beach, Californie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Creating Classes with code
Divers
Thread ID:
00170664
Message ID:
00170664
Vues:
61
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform