Creating Variables based on count value (1 Viewer)

Elvis

Registered User.
Local time
Today, 16:04
Joined
Sep 28, 2001
Messages
26
Hi All,

I have a form with 10 combo boxes on. I want to read the values of these into a variable based on a count loop. e.g.

var1 = cboVg1.text
var2 = cboVg2.text
var3 = cboVg3.text

but Im needing to use the count variable to increase the number in the combo control. Thats where I keep running into problems.

Anyone know of an easy way to do this, I've tried alsorts of combinations to do this. Not used VB for a while and now having to use VB.NET.

Thanks
 

Dennisk

AWF VIP
Local time
Today, 16:04
Joined
Jul 22, 2004
Messages
1,649
you would use an array for this type of operation
 

Elvis

Registered User.
Local time
Today, 16:04
Joined
Sep 28, 2001
Messages
26
Thanks for the reply, managed to get it working using arrays.
 

Users who are viewing this thread

Top Bottom