Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
StrTran() case insensitive
Message
From
08/07/2010 11:48:01
 
 
To
08/07/2010 11:33:38
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:
01471859
Views:
30
>>Message#1458703 ? You can pass a StringComparison
>>
>>The follow up does it with regex.
>
>That message is pratically what I have now. When I translated that into VB.NET, it gave pretty much what I have now.



I see that you use String.Compare() and not IndexOf. Basically you are advancing (and comparing) one char at a time
I think IndexOf will be much faster

>
>As for RegEx, it is good. However, if I want to expand it a little bit, I won't be able to. So, after having thought a little bit about it, I decided to keep the actual code as is. Then, if I need to add some additional functionality to it, such as mentioned yesterday in regards to the VFP StrTran() function, I would be able to.
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform