Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Out of memory on UCase()
Message
From
29/07/2013 09:39:04
 
 
To
29/07/2013 09:30:54
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01579306
Message ID:
01579339
Views:
35
>>Also - instead of using Occurs() and the successive At(...., occurrence) which traverse the string many times (once for Occurs and each time for At)
>>consider using a RegEx that returns a matches collection. ( RegEx adds some overhead, but the string will be traversed once. It also lets you specify ignoreCase)
>
>RegEx is too specific to .NET. This one would cause too much problems when moving into another environment. We have found this was related to a very big string that the UCase() was not able to handle.

I think

(1) Every environment has a RegEx
(2) If you don't want to use it and avoid UCase() , String has an IndexOf() method that lets you ignore the case
http://msdn.microsoft.com/en-us/library/ms224424.aspx and http://msdn.microsoft.com/en-us/library/system.stringcomparison.aspx
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform