General information
Category:
Coding, syntax & commands
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only