Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
StrTran() case insensitive
Message
De
07/07/2010 21:07:01
 
 
À
07/07/2010 20:40:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01471738
Message ID:
01471769
Vues:
37
>Use regular expression (RegEx) to simplify both. Although this wouldn't be a replacement < g > for VFP's powerful strtran it might do what you want:
>
>
public string StrTran(string input, string pattern,string replacement, bool ignorecase)
>{
>   return
>       Regex.Replace(input,pattern,replacement,
>	ignorecase ? RegexOptions.IgnoreCase : RegexOptions.None);
>}
Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform