Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Contains with empty string
Message
De
18/07/2014 10:16:12
 
 
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:
01604056
Vues:
34
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform