Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indirect procedure call
Message
 
À
14/01/1999 16:29:40
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00176211
Message ID:
00176303
Vues:
33
>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!!!
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform