Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Contains with empty string
Message
From
18/07/2014 10:16:12
 
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:
01604056
Views:
33
Now that Craig's reminded me I'd use .IndexOf() - at least for your specific need. :-}
>If it were up to you, would you use .Contains() or .IndexOf()?
>
>>Another way is variable.IndexOf("substring"). It will return -1 if it doesn't exist
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform