Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Contains with empty string
Message
 
 
À
18/07/2014 10:14:22
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01604011
Message ID:
01604055
Vues:
27
I just posted a message to Craig that .IsNullorEmpty() does not work on string with white spaces. So your suggestion will work.

Thank you.

>See string.IsNullOrWhiteSpace()
>
>>I could test it to find out but it is easier to ask :). If the string 'theString' is empty but like this " " (that is has a bunch of empty characters), would .IsNullOrEmpty(theString) return true? Or I need to apply .trim() to the string?
>>
>>>It's a static method ot the string object:
String.IsNullOrEmpty(theString)
>>>
>>>>The line would be what I said below. I type the name of my string then press on the period (.). The intellisense shows all properties and methods available. But .IsNullOrEmpty is not in the drop-down list.
>>>>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform