is there anyway to suspend a for next loop until a textbox has been filled in and the keyboard enter has been press
Dim playersname(7) As String
Dim players As Integer = 7
For player = 1 To players
playersname(players) = TextBox1.Text
Next
Thx
Printable View
is there anyway to suspend a for next loop until a textbox has been filled in and the keyboard enter has been press
Dim playersname(7) As String
Dim players As Integer = 7
For player = 1 To players
playersname(players) = TextBox1.Text
Next
Thx
Thread moved from 'Database Development' forum to 'VB.Net' (VB2002 and later) forum.
You can use Exit For to Break a loop. Example
Code:Dim playersname(7) As String
Dim players As Integer = 7
For player = 1 To players
playersname(players) = TextBox1.Text
If SomeCondition = True Then
Exit For
End if
Next