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
Divers
Thread ID:
00115435
Message ID:
00115662
Vues:
12
>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?
>

VB3 apps requires only VBRUN300.DLL if you don't add database access of controls.
VB5 apps requires a setup on "virgin" PCs (no previous VB5 installation).



>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"?
>
You can't do that in VB.


>Is there an event that is triggered when the mouse moves off the object, or do I simply turn it off someplace else?
>
There's no MouseOff. You have to turn it off when you detect the mousemove elsewhere.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform