, SlowLearner, , Word VBASigned 1
, .
If
, Not 1
-2
, Not 0
-1
- , Not VBASigned
(.. -False) .
MSDN , VBASigned
, ( TypeName(ThisDocument.VBASigned)
) Boolean
, , , .
, CBool(ThisDocument.VBASigned) * 1
1
, a CBool(1) * 1
-1
. , , , VBA , Boolean
(, ThisDocument.VBASigned
), . , CBool
Boolean
, -1
.
, :
Sub test()
Dim myVBASigned As Integer
Dim isSigned As Boolean
myVBASigned = ThisDocument.VBASigned 'Store as Integer
isSigned = myVBASigned 'Convert to a "true" Boolean
If Not isSigned Then 'Use the "true" Boolean
Debug.Print "I am NOT signed"
End If
End Sub