Can someone please tell me how I can automatically generate the textbox
numbers in this statement...
EG:
- tbMenuItem1.text, tbMenuItem2.text etc etc...
- tbMenuItem(i) doesn't work
I would actually also like to create the FOR statement so it automatically
checked how many textboxes there was in the form so it new the number of
times to loop and create the correct number of SQL parameters...
Any help appritiated...
<CODE>
For i As Integer = 0 To 11
'Gets values of menu text textbox and sends it to the database... For
menu text
cmd.Parameters.Add(New SqlParameter("@mItem" & (i),
SqlDbType.NVarChar, 255)).Value = tbMenuItem1.Text
Next