View Full Version : Creating Variables based on count value


Elvis
03-09-2007, 05:37 AM
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
03-15-2007, 01:32 AM
you would use an array for this type of operation

Elvis
03-19-2007, 03:57 AM
Thanks for the reply, managed to get it working using arrays.