Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
StrTran() case insensitive
Message
From
07/07/2010 21:07:01
 
 
To
07/07/2010 20:40:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01471738
Message ID:
01471769
Views:
36
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform