Skip to content

Commit 2983e18

Browse files
committed
Bug Fixed: cannot set separator char
1 parent a40ebf4 commit 2983e18

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/VBAexpressions.cls

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ Private P_GALLOPING_MODE As Boolean
167167
Private P_RESULT As Variant
168168
Private P_SEPARATORCHAR As String
169169
Private SubTreeData() As String
170+
Private UnaryFlag As Boolean
170171
Private UserDefFunctions As ClusterBuffer
171172

172173
'#
@@ -608,7 +609,7 @@ Public Function ArrayFromString(ByRef StrArray As String) As String()
608609
arrCapacity = arrCapacity * 2
609610
ReDim Preserve tmpStr(0 To arrCapacity - 1)
610611
End If
611-
tmpStr(aIndex) = Split(MidB$(StrCopy, VectorStartPos, VectorEndPos - VectorStartPos + 1), ";")
612+
tmpStr(aIndex) = Split(MidB$(StrCopy, VectorStartPos, VectorEndPos - VectorStartPos + 1), P_SEPARATORCHAR)
612613
Loop While i <= StrLen
613614
NumRows = aIndex
614615
NumCols = UBound(tmpStr(aIndex))
@@ -646,14 +647,14 @@ Public Function ArrayToString(ByRef InputArray As Variant) As String
646647
If j = LB2 Then
647648
tmpData = tmpData & "{" & GetArrItm(InputArray, MultiDimArr, i, j)
648649
Else
649-
tmpData = tmpData & ";" & GetArrItm(InputArray, MultiDimArr, i, j)
650+
tmpData = tmpData & P_SEPARATORCHAR & GetArrItm(InputArray, MultiDimArr, i, j)
650651
End If
651652
If j = UB2 Then
652653
tmpData = tmpData & "}"
653654
End If
654655
Next j
655656
If i < UB Then
656-
tmpData = tmpData & ";"
657+
tmpData = tmpData & P_SEPARATORCHAR
657658
End If
658659
Next i
659660
ArrayToString = "{" & tmpData & "}"
@@ -1080,7 +1081,7 @@ Private Function Factorial(ByRef Expression As String) As String
10801081
Dim tmpElm As Double
10811082
Dim Fsgn As Long
10821083

1083-
If InStrB(1, Expression, ";") = 0 And InStrB(1, Expression, ".") = 0 Then
1084+
If InStrB(1, Expression, P_SEPARATORCHAR) = 0 And InStrB(1, Expression, ".") = 0 Then
10841085
tmpEval = 1
10851086
tmpElm = CDbl(Expression)
10861087
Fsgn = Sgn(tmpElm)
@@ -2503,7 +2504,7 @@ Private Function SplitArgs(ByRef args As String) As String()
25032504
End If
25042505
Else
25052506
SargStart = tmpPos
2506-
SargEnd = InStrB(tmpPos, args, ";")
2507+
SargEnd = InStrB(tmpPos, args, P_SEPARATORCHAR)
25072508
If SargEnd = 0 Then
25082509
SargEnd = LenArgsStr + 1
25092510
End If

0 commit comments

Comments
 (0)