I am trying to use the following code as a subroutine
I have an array.....
say dim a(10) as string
a(0)="TT1" a(1)="hh" etc
and loop through the following routine 10 times ie a(0) a(1)---> a(10)
Instead on refering to the field name as HNo i want to refer to it as a(0) etc
ie. Dim a(0)(Array_Size) a(0)(i) = New TextBox
Appreciate any advice...
Regards Trob70
-------------------------------------------------------------
Dim Array_Size As Integer = 23
Dim HNo(Array_Size)
For i = 0 To Array_Size
HNo(i) = New TextBox
HNo(i).Text = i.ToString + 1
HNo(i).Top = 50 + 20 * i
HNo(i).width = 200
HNo(i).height = 50
HNo(i).left = 100
Me.Controls.Add(HNo(i))
Next i