Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Classes with code
Message
 
To
28/12/1998 01:13:37
Anthony Test
Microcomputer Engineering Services, Llc
Huntington Beach, California, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00170664
Message ID:
00170668
Views:
16
Hi Anthony,

>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?

In VFP there are two possibilities to create a class: a) in the Class Designer (VCX) or b) in a program file (PRG). You created the latter. In order to add this class to your project, you have to add the PRG file, ie. Test.Prg. When you want to create the class, you can use in VFP 5:

SET PROCEDURE TO Test.Prg ADDITIVE
oObj = CREATEOBJECT("Junk")

or in VFP 6:

oObj = NEWOBJECT("Junk","Test.Prg")

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform