Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting existance of procedure/function ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00792368
Message ID:
00792499
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform