Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does a DEFINE CLASS... class exist?
Message
De
21/05/2003 12:41:15
 
 
À
21/05/2003 10:43:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787527
Message ID:
00791148
Vues:
26
Running a procedure file that contains a class definition does not actually define a class in memory...IOW, if there is no procedural code at the top of the file, nothing runs.

Any thoughts, Fred?

>Yes, many examples. All to do with the fact that we write class definitions in code on the fly during run time to a temporary procedure file, then execute the procedure file to define the class, then add the class to the parent object.
>
>In most cases, if there is anything wrong with the code that defines the class, an error results. But in some cases an error does not result even though a problem with the define code has prevented the class from being defined, and the AddObject() code errors out when it attempts to create an object from a class that has not been defined.
>
>It is for this reason that I need to know if the class was actually defined and exists in memory BEFORE I attempt to AddObject() from the class. I have not found a native VFP process that will tell me whether or not the class has been defined and exists in memory.
>
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform