How to check the textbox is empty or not ?

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
 
C

Cor Ligthert

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
 
H

Herfried K. Wagner [MVP]

* "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
///
 
C

Cor Ligthert

You have heard a lot of echo's in the mountains in Austria that you think
let me make some more.

:)

Cor
 
H

Herfried K. Wagner [MVP]

* "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 ;-).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top