Information générale
Catégorie:
Codage, syntaxe et commandes
>>Hi everybody,
>>
>>I have 76 procedures .These procedures process different tasks.
>>I read the names of these procedures into a string variable.
>>How can I call a procedure if the name of the procedure is in a string variable?
>>I tried to use scripting control but no success so far.
>>Thanks,
>>Vlad
>
>If you use VB5, I would say... make a by Select Case statement. I don't think of another way to do that.
>
>If you use VB6, take a look at the CallByName statement. It allows you to call a method or a property from a string!!!
Hi Eric,Ed.
Thanks for suggestions. We tried to avoid writing a select case with 76 branches and finally found that vb6 feature which eased the work. Im surprised that vb5 doesnt allow indirect calls( like in vfp ).
Thanks again.
Regards,
Vlad.
Précédent
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