J jwebb Member Joined Sep 4, 2006 Messages 11 Programming Experience Beginner Feb 20, 2007 #1 How can I use a loop to read in data from text boxes that already exist on the form and were not created with an array. Say I would like to do some comparisons on the text values of textboxes 34-50. Thanks in advance.
How can I use a loop to read in data from text boxes that already exist on the form and were not created with an array. Say I would like to do some comparisons on the text values of textboxes 34-50. Thanks in advance.
cjard Well-known member Joined Apr 25, 2006 Messages 7,081 Programming Experience 10+ Feb 21, 2007 #2 foreach Control c in Form.Controls if typeof c is textbox then .... Note that the notion of "textbox 34-50" i'm not sure on.. you might have to keep a counter of how many textboxes youve seen so far.. Upvote 0 Downvote
foreach Control c in Form.Controls if typeof c is textbox then .... Note that the notion of "textbox 34-50" i'm not sure on.. you might have to keep a counter of how many textboxes youve seen so far..