Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to Mid()
Message
From
12/10/2010 12:32:49
 
 
To
12/10/2010 12:19: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:
01484803
Message ID:
01485016
Views:
33
>>Actually, there is http://msdn.microsoft.com/en-us/library/fyx7s61s.aspx
>>
>>
>>string xx = sb.ToString(startIndex, length);
>>
>>
>>You can even make an extension method
>>
>>
>>But why do you need that many mid's ?
>
>Ah, thanks for the answer, I will make sure that try that out later on today. I didn't think of that approach.
>
>As for the occurences of Mid(), this is in regards to the parser being used here. I discovered something yesterday where I had to optimize a few things. I did most of it. But, in order to obtain the result in a flash, I still have that Mid() line to optimize.

I wonder whether there's another approach to your method that does not involve creating that many objects (mid/substr). Perhaps there is
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform