Skip to content

Commit 1a96991

Browse files
committed
Setting default data type
The text string has been set as the default data type. Empty cells are considered as text when inferred with the filter function.
1 parent 894b095 commit 1a96991

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CSVArrayList.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,8 @@ Private Function JoinVariablesAndValues(ByRef tRecord As Variant, FieldsToJoin()
15301530
ReDim tmpData(tdLB To tdUB)
15311531

15321532
For idxIter = tdLB To tdUB
1533-
If IsNumeric(tRecord(DeltaIdx + FieldsToJoin(idxIter) - 1)) Then
1533+
If IsNumeric(tRecord(DeltaIdx + FieldsToJoin(idxIter) - 1)) And _
1534+
tRecord(DeltaIdx + FieldsToJoin(idxIter) - 1) <> vbEmpty Then
15341535
tmpData(idxIter) = "f" & FieldsToJoin(idxIter) & "=" _
15351536
& tRecord(DeltaIdx + FieldsToJoin(idxIter) - 1)
15361537
Else 'Literal strings

0 commit comments

Comments
 (0)