Skip to content

Commit 73f49b9

Browse files
committed
Improvements: integration with VBAexpressions core modules.
1 parent 0480998 commit 73f49b9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/CSVArrayList.cls

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,11 @@ Public Function Filter(Pattern As String, startIndex As Long) As CSVArrayList
350350
.Create Pattern
351351
FilterFields() = FieldsToFilter(.CurrentVariables)
352352
For rCounter = startIndex - 1 To CurrentIndex
353-
If CBool(.Eval(FilterVarValues(rCounter, FilterFields))) Then
354-
Filter.Add Buffer(rCounter) 'Append current record
353+
.Eval FilterVarValues(rCounter, FilterFields)
354+
If .ErrorType = ExpressionErrors.errNone Then
355+
If CBool(.Result) Then
356+
Filter.Add Buffer(rCounter) 'Append current record
357+
End If
355358
End If
356359
Next rCounter
357360
End With

0 commit comments

Comments
 (0)