Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where's the Class
Message
De
29/08/2000 22:28:43
 
 
À
29/08/2000 13:58:19
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00410389
Message ID:
00410593
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform