Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if Function/Procedure exists
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00792369
Message ID:
00792379
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform