Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if Function/Procedure exists
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00792369
Message ID:
00792379
Vues:
17
>I'm writing an application that needs to call table-driven function names. For example, the table may have the following records:
>
>funcName(first,last)
>funcAddress(mailing)
>funcName(last)
>...
>
>I want to get the data from the table and call that function. I would like to put in a validation to check that the specified function exists before I call it, if possible.
>
>Thanks! Everyone here is always so helpful. :)

A couple other ideas

1. a local error handler:
lcOldError = ON ("ERROR")
ON ERROR
funcName(first,last)
ON ERROR &lcOldError
2. if you can deploy these operations in a class via methods, you can test for the existence of a method using PEMStatus()

Jay
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform