Skip to content

Commit

Permalink
v3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ws-garcia committed Apr 5, 2024
1 parent 80ce3cf commit 71e3204
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/LO Basic/VBAExpressionsLib/VBAexpressions.xba
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Private P_ENFORCE_BOOLEAN As Boolean
Private P_FORMATRESULT As Boolean
Private P_GALLOPING_MODE As Boolean
Private P_RESULT As Variant
Private P_SCOPE As Object
Private P_SCOPE As VBAexpressionsScope
Private P_SEPARATORCHAR As String
Private SubTreeData As Variant'() As String
Private UserDefFunctions As ClusterBuffer
Expand Down Expand Up @@ -446,10 +446,8 @@ Public Property Get EvalScope() As Object
Set EvalScope = P_SCOPE
End Property

Public Property Set EvalScope(aObject As Object)
If VarType(VBAexpressionsScope) = "VBAexpressionsScope" Then
Set P_SCOPE = aObject
End If
Public Property Set EvalScope(aObject As VBAexpressionsScope)
Set P_SCOPE = aObject
End Property

''' <summary>
Expand Down Expand Up @@ -2218,6 +2216,8 @@ Public Function Create(ByRef aExpression As Variant, Optional resetScope As Bool
P_EXPRESSION = aExpression
If resetScope Then
VariablesInit ExprToEval
Else
ParseVariables ExprToEval
End If
ExprToEval = SBracketsNotationToNominal(ExprToEval)
Parse ExprToEval
Expand Down
2 changes: 2 additions & 0 deletions src/VBAexpressions.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,8 @@ Public Function Create(ByRef aExpression As Variant, Optional resetScope As Bool
P_EXPRESSION = aExpression
If resetScope Then
VariablesInit ExprToEval
Else
ParseVariables ExprToEval
End If
ExprToEval = SBracketsNotationToNominal(ExprToEval)
Parse ExprToEval
Expand Down

0 comments on commit 71e3204

Please sign in to comment.