PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average.

How to check the textbox is empty or not ?

 
 
Agnes
Guest
Posts: n/a
 
      10th May 2004
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


 
Reply With Quote
 
 
 
 
CT
Guest
Posts: n/a
 
      10th May 2004
TextBox.Text.Length


--
Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105
"Agnes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      10th May 2004
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


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      10th May 2004
* "Agnes" <(E-Mail Removed)> scripsit:
> 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
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      10th May 2004
You have heard a lot of echo's in the mountains in Austria that you think
let me make some more.

:-)

Cor


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      10th May 2004
* "Cor Ligthert" <(E-Mail Removed)> scripsit:
> 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 ;-).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
One Check box to check all check boxes =?Utf-8?B?TWFyayBTZW5pYmFsZGk=?= Microsoft Access Forms 2 12th Apr 2005 04:27 PM
check for empty textbox in email validation Xendor Microsoft ASP .NET 2 10th Sep 2004 05:31 PM
check empty(textbox) Agnes Microsoft VB .NET 1 9th Aug 2004 03:02 PM
check check check Mohan Microsoft Excel Discussion 1 16th Dec 2003 10:17 AM
check whether a textbox is empty Yuelin Microsoft C# .NET 5 7th Aug 2003 06:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 PM.