Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting existance of procedure/function ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00792368
Message ID:
00792499
Vues:
12
>Is there a way to detect the existance of a procedure or function at runtime prior to calling it?
>
>The reason, is that we have some procedure calls as dynamic table links. Need to make sure the procedure/function is accessible to the calling module prior to invoking it to prevent fatal run-time errors.

If you have 8.0 this should be pretty easy to do:

Try
TheSPName()
Catch
* Handle error
EndTry

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform