Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
How Can You Reference an Object Using a Variable?
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
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