Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a reorg for .NET Framework 4
Message
From
23/07/2010 12:23:15
 
 
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:
01473537
Message ID:
01473601
Views:
37
>As per Bonnie Split() will be quicker. So (if s is the string):
Function MLine(ByVal line As Integer, ByRef cLine As String) As Boolean
>         Dim array As String() = s.Split(ControlChars.Cr)
>        If line > array.Length Then
>            cLine = String.Empty
>            Return False
>        Else
>            cLine = array(line)
>            Return True
>        End If
>    End Function
(maybe needs a check for negative line)

Thanks, this has helped to fine tune the code.
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