Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To retrieve the text property of an combo box.
Message
 
To
30/03/1999 14:21:25
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00203514
Message ID:
00203626
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform