Skip to content

Commit e9f74af

Browse files
committed
SplitField method enhancement
1 parent 8d126e1 commit e9f74af

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/CSVArrayList.cls

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,13 +1629,11 @@ Public Function SplitField(aIndex As Long, CharToSplitWith As String, _
16291629
For sfldIndex = LBound(cpRecord) To UBound(cpRecord)
16301630
lRowIdx = lRowIdx + 1
16311631
rowDiff = rowDiff + 1
1632+
curRecord(aIndex) = cpRecord(sfldIndex)
16321633
If lRowIdx = 1 Then
1633-
curRecord(aIndex) = cpRecord(sfldIndex)
16341634
Buffer(rCounter + rowDiff - 1) = curRecord
16351635
Else
1636-
ReDim tmpRecord(0 To ColUB)
1637-
tmpRecord(aIndex) = cpRecord(sfldIndex)
1638-
Me.Insert rCounter + rowDiff - 1, tmpRecord
1636+
Me.Insert rCounter + rowDiff - 1, curRecord
16391637
End If
16401638
Next sfldIndex
16411639
End If

0 commit comments

Comments
 (0)