Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I know at runtime if a class is defined
Message
De
09/03/2004 05:08:50
 
 
À
09/03/2004 00:12:22
James Chan
Objectmastery Pty Ltd
Hawthorn, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00884319
Message ID:
00884357
Vues:
10
Why not do this:
* use ON ERROR on old VFP
ON ERROR *
for Loop = 1 to MaxClass
* TRY
    oObject = CreateObject(ConstructClassName(m.Loop))
    * do something
* CATCH
* ENDTRY
endfor
*restore error
ON ERROR
Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform