How to check the textbox is empty or not ?

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

Except trim(Me.txtTextBox.text) = "" ??
for vfp, there is empty(), for c++ there is isblank() .
any function call can check it in .net ???

Thanks
From Agnes
 
Hi Agnes,

In VB.net you have
xx Is Nothing 'this is after dim xx as string
xx = "" 'this is after dix xx as string = ""
xx = Nothing 'the same as above
xx.lenght = 0 'the same as above

What do you you want?

:-)

Cor
 
* "Agnes said:
Except trim(Me.txtTextBox.text) = "" ??
for vfp, there is empty(), for c++ there is isblank() .
any function call can check it in .net ???

\\\
If Me.TextBox1.TextLength = 0 Then
...
Else
...
End If
///
 
You have heard a lot of echo's in the mountains in Austria that you think
let me make some more.

:-)

Cor
 
* "Cor Ligthert said:
You have heard a lot of echo's in the mountains in Austria that you think
let me make some more.

Mhm... There are many ways (did I see 'Len'?) to solve the problem, but
I posted my favorite method ;-).
 
Back
Top