como seria la sentecia para que me diga que tiene algo adentro
ejemplo
tengo un text1.text y quiero saber si tiene algo adentro o esta vacio
if text1.text =
como seria?
If Text1.Text = "Hola" then
MsgBox "El texto dice HOLA"
end if
'Si queres ver si esta vacio:
If Text1.Text = "" then
MsgBox "El textbox esta vacio"
end if
Saludos.-
gracias era eso las " " lo sabia pero no me acordaba muchas gracias
Tambien puede ser
If Len(text1.text) = 0 then
Msgbox "Esta vacio man!"
End If
Cita de: NYlOn en 20 Marzo 2006, 20:06 PM
If Text1.Text = "Hola" then
MsgBox "El texto dice HOLA"
end if
'Si queres ver si esta vacio:
If Text1.Text = "" then
MsgBox "El textbox esta vacio"
end if
Saludos.-
Pequeña Retificación
Private Sub Command1_Click()
MsgBox "El texto dice " & Text1
End Sub
No recuerdo bien si era con el Text o con el Label q se podia poner
If txt.caption=Empty then
msgbox "Vacio"
end if
Corrijanme si me equivoco...
Saludos