Cita:
Iniciado por fedefrankk
Hola, tengo mis text box indexados creo... son asi. text1(0) - text1(1).. etc. hasta llegar a 10 text1.(10)..
eso es?... como se hace eso con el bucle for?
yo se esconder por ejemplo
for x=0 to 10
text1(x).visible=false
next x
pero comprobar no lo se :(
Hola, podrías hacer algo como esto:
Código:
Private Sub Command1_Click()
Dim i As Integer
For i = 0 To Text1.Count - 1
If Text1(i) = "" Then
MsgBox "El TextBox " & i + 1 & " está vacío."
Exit For
End If
Next i
End Sub
E incluso lo podrías mejorar si en la propiedad Tag de cada TextBox le pones un identificador: