Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Can You Reference an Object Using a Variable?
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
How Can You Reference an Object Using a Variable?
Divers
Thread ID:
00115435
Message ID:
00115435
Vues:
48
Greetings,

I'm a FoxPro developer who also occasionally uses VB. I normally use VB3 since it *appears* to require only the VBRUN300.DLL library for most simple applications, versus using a setup wizard... unless I'm wrong. If I *am* wrong, what are the minimum support files to be included with the EXE if I use VB5?

Anyway, in FoxPro, it's easy for me to reference an object by using a variable; such as: Label&ext..Caption = "Text". Is such a thing possible with VB? In other words, if I have two labels, "label1" and "label2", how do I properly reference "label1" by using "label" and a variable containing "1"?

One other thing: The MouseMove event allows me to call a routine to change the color of the label when the mouse passes over it, sort of like a hyperlink. Is there an event that is triggered when the mouse moves off the object, or do I simply turn it off someplace else?

Thanks a lot!

Michael Reynolds
Santa Barbara, CA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform