Skip to content

Commit 5d83d4a

Browse files
committed
Update VBAexpressions.cls
1 parent f1405f9 commit 5d83d4a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/VBAexpressions.cls

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Private P_DEGREES As Boolean
171171
Private P_ERRORDESC As String
172172
Private P_ERRTYPE As ExpressionErrors
173173
Private P_EXPRESSION As String
174-
Private P_FORCE_BOOLEAN As Boolean
174+
Private P_ENFORCE_BOOLEAN As Boolean
175175
Private P_FORMATRESULT As Boolean
176176
Private P_GALLOPING_MODE As Boolean
177177
Private P_RESULT As Variant
@@ -323,7 +323,7 @@ Private Sub Class_Initialize()
323323
FunctionsId() = Split(BuildinFunctIDList, ";")
324324
FunctionsName() = Split(BuildinFunctNameList, ";")
325325
Set P_SCOPE = New VBAexpressionsScope
326-
P_FORCE_BOOLEAN = False
326+
P_ENFORCE_BOOLEAN = False
327327
InitCBbuffer UserDefFunctions
328328
'@--------------------------------------------------------------------
329329
' Populate linked index constructor
@@ -411,16 +411,16 @@ Public Property Get expression() As String
411411
expression = P_EXPRESSION
412412
End Property
413413

414-
Public Property Get ForceBoolean() As Boolean
415-
ForceBoolean = P_FORCE_BOOLEAN
414+
Public Property Get EnforceBoolean() As Boolean
415+
EnforceBoolean = P_ENFORCE_BOOLEAN
416416
End Property
417417

418418
''' <summary>
419419
''' When True, a False is returned on evaluation errors.
420420
''' This can be useful when evaluating piecewise functions.
421421
''' </summary>
422-
Public Property Let ForceBoolean(aValue As Boolean)
423-
P_FORCE_BOOLEAN = aValue
422+
Public Property Let EnforceBoolean(aValue As Boolean)
423+
P_ENFORCE_BOOLEAN = aValue
424424
End Property
425425

426426
''' <summary>
@@ -1583,7 +1583,7 @@ Private Sub BottomLevelEval(ByRef aToken As token)
15831583
End If
15841584
Exit Sub
15851585
BLevelEval_errHanlder:
1586-
If Not P_FORCE_BOOLEAN Then
1586+
If Not P_ENFORCE_BOOLEAN Then
15871587
aToken.EvalResult = e_ValueError
15881588
Else
15891589
aToken.EvalResult = False
@@ -2856,7 +2856,7 @@ Private Function EvalFunction(ByRef Argument As String, ByRef FunctionName As St
28562856
End If
28572857
Exit Function
28582858
EvalFunction_errHandler:
2859-
If Not P_FORCE_BOOLEAN Then
2859+
If Not P_ENFORCE_BOOLEAN Then
28602860
EvalFunction = e_ValueError
28612861
Else
28622862
EvalFunction = False

0 commit comments

Comments
 (0)