input string was not in correct format...

eramgarden

Well-known member
Joined
Mar 8, 2004
Messages
579
I have a text box, im checking it against empty string ( "")...

If i have it as this: it works

If txtCCC.Text <> ""
...
end if

-----------

But if I have it like this:

if txtCCC.Text.Trim.Empty

Or

if txtCCC.text.ToString.Trim.Empty

OR

if (txtCCC.Text).Trim.Empty

I get the error that input string is not in correct format.

Why???
 
Back
Top