Skip to content

Commit

Permalink
SplitField method enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
ws-garcia committed Jul 20, 2023
1 parent 8d126e1 commit e9f74af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/CSVArrayList.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1629,13 +1629,11 @@ Public Function SplitField(aIndex As Long, CharToSplitWith As String, _
For sfldIndex = LBound(cpRecord) To UBound(cpRecord)
lRowIdx = lRowIdx + 1
rowDiff = rowDiff + 1
curRecord(aIndex) = cpRecord(sfldIndex)
If lRowIdx = 1 Then
curRecord(aIndex) = cpRecord(sfldIndex)
Buffer(rCounter + rowDiff - 1) = curRecord
Else
ReDim tmpRecord(0 To ColUB)
tmpRecord(aIndex) = cpRecord(sfldIndex)
Me.Insert rCounter + rowDiff - 1, tmpRecord
Me.Insert rCounter + rowDiff - 1, curRecord
End If
Next sfldIndex
End If
Expand Down

0 comments on commit e9f74af

Please sign in to comment.