I have an array of 5 textboxes ie: text5(0)-text5(5)
how do I count the index of each textbox in the array
Or better yet what I want to do is check if the text box has any text in it and if it does, goto the the next textbox ect. I got the loop to work for this however when it counts a index of 6 I get error saying that there is no text5(6) witch there is'nt . I tried a if then with a message that said "no more boxs available" but I couldn't get out of the loop
anyway here's what I got for the loop
I need to get out of the loop if the array index is >5VB Code:
Dim I As Integer Dim F As Boolean Do Until F = True I = I + 1 If I > 5 Then MsgBox ("No more boxs available") If Text6(I) = "" Then F = True Loop
some error handeling




Reply With Quote