Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where's the Class
Message
From
29/08/2000 22:28:43
 
 
To
29/08/2000 13:58:19
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00410389
Message ID:
00410593
Views:
16
>When I run a .prg which creates a class, I get no errors. I assume that the class has been created but, where is it? In memory? If I attempt to createobject("ClassName"), I get an error message stating that "Class definition ClassName is not found".

Simply running the PRG that contains the DEFINE CLASS doesn't create an instance of the class; in order to create an instance, the DEFINE must be findable in the procedures searched according to SET PROCEDURE and the VFP search criteria (or if it's a visual class stored in a VCX, the VCX must be in the SET CLASSLIB list); you create instances of the class in memory via CREATEOBJ(), NEWOBJECT(), or by using a container's AddObject() or NewObject() methods. Eric gives you a good example.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform