Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if a method exists
Message
From
03/03/2004 06:35:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to determine if a method exists
Miscellaneous
Thread ID:
00882642
Message ID:
00882642
Views:
104
I have a class that contains a method called THIS.ValidateData() which works with the current row of a cursor. The method loops through all the columns of the row of the cursor and formats a function call based on the column name. For example if the current column it is evaluating is named 'UserID' it will create a local memvar called m.lcFunctionCall and assign it the value of 'ValidateUserID'. It then executes the function call to have that method in the class to validate the column's value. It will return a TRUE or FALSE value.

My question: Is there a way to determine if the method contained in the m.lcFunctionCall exists in the class? I don't necessarily want to have to create a method in the class for each column of the table.
Time is a wonderful teacher. Unfortunately it kills all of its students.
Next
Reply
Map
View

Click here to load this message in the networking platform