Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OK to search .vcx file programatically?
Message
 
 
À
15/09/1998 14:09:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00136686
Message ID:
00136863
Vues:
16
Sylvia,

1) there is absolutely nothing wrong with running a SELECT against the vcx to see if a class exists.

2) If you are trying to create this object within the method code of another object, the objects' Error() method takes precedence over ON ERROR handlers. So you can handle the error there and not have to worry about saving, resetting and restoring the global handler.

3) You could also wrap the CreateObject with your own object/UDF as a reusable component.

>I didn't know this could be done. Are you saying that this local error routine will not overwrite my global error routine after I exit from this module? If that's the case, then you're right, this would be better.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform