Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indirect procedure call
Message
De
20/01/1999 01:27:03
 
 
À
15/01/1999 09:57:00
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00176211
Message ID:
00177893
Vues:
41
>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 ).

That is a rare feature that is almost exclusive to scripting languages like the xbase family. In C, the solution would be function pointers. A function pointer is literally a pointer to a function, somewhat analogous to an object reference. Perhaps you could package the functions as methods of the same name for a set of classes, and initialize an array of object references. Inheritance would be useful for this, but since the class definitions are simple it is not essential.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform