Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Check if TextBox is filled

Hello
Well I have a very silly problem
I want to check a textbox is filled or not. But the value of text box can be -ve +ve or 0. So i can not use
if val(text1)<>0 then
'some thing
end if
what operator i should use in this case.
[274 byte] By [tava.amitava] at [2007-11-11 10:09:58]
# 1 Re: Check if TextBox is filled
Try This:
If IsNumeric(text1) Then
' Do Some Thing
End If
Ron Weller at 2007-11-11 17:23:11 >
# 2 Re: Check if TextBox is filled
it has numeric values only ? .. if so Ron's answer do what u need but if you want generally to know if the text1 is empty or nop so do that :
If text1 <> "" Then /*DO SOME THING*/ End If
Amahdy at 2007-11-11 17:24:10 >