Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Contains with empty string
Message
 
 
To
18/07/2014 09:31:27
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01604011
Message ID:
01604022
Views:
33
For some reason my string does not have property .IsNullOrEmpty. When I enter period after ShortString the intellisense does not show this property. What am I missing?

>.Length will fail if the variable is null. Better to go with string.IsNullOrEmpty
>
>
>>At this time, I only need this in one place. Simply checking the .Length works. But I will save your code for the future; if I need to use it in other places in the program
>>Thank you.
"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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform