Information générale
Titre:
Calling a function dynamically like macro substitution inVFP
I have a function called InList.
The syntax is :-
Private Function InList(strSearched As Variant, ParamArray ArraySearchFor()) As Boolean
Dim strSearchFor As Variant
For Each strSearchFor In ArraySearchFor
If strSearched = strSearchFor Then InList = True: Exit Function
Next strSearchFor
End Function
I have a string having the values of array which have to be passed as search values to the above function i.e. strSearchFor = "'2','3','7'"
How can i call this function in my code?
Please anybody help me.
Thanks in advance.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement