Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Can You Reference an Object Using a Variable?
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
How Can You Reference an Object Using a Variable?
Miscellaneous
Thread ID:
00115435
Message ID:
00115435
Views:
47
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
Map
View

Click here to load this message in the networking platform