Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To retrieve the text property of an combo box.
Message
De
31/03/1999 03:09:03
 
 
À
30/03/1999 14:21:25
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00203514
Message ID:
00203773
Vues:
13
You can't do what you want to do directly in VB 5, but that does still leave a couple of options.

(1) Put them in a control array.

(2) Build a collection (at form load time or whenever) containing all the Combo boxes (added in order) and then in the loop refer to
collection(i).Text

e.g assuming combo1 - combo5 exist.
In the general declarations
DIM colCombos as New Collection

In the Form_Load event.

colCombos.Add combo1
colCombos.Add combo2
colCombos.Add combo3
colCombos.Add combo4
colCombos.Add combo5

Now from anywhere within the other form code,

colCombos(1) refers to combo1
colCombos(2) refers to combo2
etc.

Hope this helps,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform