Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if a method exists
Message
De
04/03/2004 16:44:47
 
 
À
03/03/2004 06:35:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00882642
Message ID:
00883283
Vues:
10
How about pemstatus()?

Aloha,

James
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform