Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To retrieve the text property of an combo box.
Message
 
À
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:
00203626
Vues:
16
>Hi,
>
> i have about 5 combo boxes which has the values filled up according to certain criteria.
>
> the problem here is that the combo's are not an control array, and i want access the text property of each combo by butting them in a loop,
>but then i get an error
>
> Do While Not .EOF
> obect = "combo" + Trim(Str(i))
> s = obect + ".text"
> (object).Text = rs4!reason_cd
> i = i + 1
> .MoveNext
> Loop
>Any help regarding this is highly appreciated
>
>Regards
>shashi

Using VB5, there is no way to do that. If you use VB6, look at the CallByName function.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform