|
|
|
Click here to copy the following block |
Function Split2(ByVal Text As String, Optional ByVal RowSeparator As String = _ vbCrLf, Optional ByVal ColSeparator As String = ",") As String() Dim lines() As String Dim cols() As String Dim r As Long Dim c As Long lines() = Split(Text, RowSeparator) ReDim res(UBound(lines), 0) As String For r = 0 To UBound(lines) cols() = Split(lines(r), ColSeparator) If UBound(cols) > UBound(res, 2) Then ReDim Preserve res(UBound(lines), UBound(cols)) As String End If For c = 0 To UBound(cols) res(r, c) = cols(c) Next Next Split2 = res() End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|