So i have 50 textboxes in an array... Im trying to make a textbox hidden if it has text in it, then show the next box. This is the code i have, but its not working properly. \r\n \r\n
\r\n
Code:
\r\n
Private Sub Command1_Click()\r\nDim x As Integer\r\nIf Text1(x) = "" Then\r\nlblblah = "k"\r\nElse\r\nText1(x).Visible = False\r\nText1(x).Text = Text1(x) + 1\r\nText1(x).Visible = True\r\nEnd If\r\nEnd Sub
So i have 50 textboxes in an array... Im trying to make a textbox hidden if it has text in it, then show the next box. This is the code i have, but its not working properly.
Code:
Private Sub Command1_Click()
Dim x As Integer
If Text1(x) = "" Then
lblblah = "k"
Else
Text1(x).Visible = False
Text1(x).Text = Text1(x) + 1
Text1(x).Visible = True
End If
End Sub
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe