Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OK to search .vcx file programatically?
Message
De
15/09/1998 09:23:10
 
 
À
15/09/1998 09:20:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00136686
Message ID:
00136687
Vues:
21
>I want to know whether a class exists in a certain library before I try to instantiate it in my program (reason: I don't want to get an error message if it doesn't exist). I couldn't find a function for this and the only thing I could come up with is to open the class library programatically and search for objname. This worked, but I felt a little uneasy about touching the .vcx from within a program.
>
>Can anyone offer any advice, caveats, etc. on this?
>
>Thanks,
>
>Sylvia

You can put error trap on CREATEOBJECT() line and check for errors without interrupting of program flow.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform