About this, it's the hard part of VB
In fact, it use the type of the container variable to switch between logical and bitwise:
code:

Sub test()
Dim btest As Boolean
Dim ntest As Long

btest = Not 170
ntest = Not 170
MsgBox "btest : " & btest & Chr(10) & "ntest : " & ntest
End Sub


You'll get this :

code:

btest : True
ntest : -171

VB don't know screen output, that's why the msgbox is here
(well, until you add a complete module of API command to support dos box output)

_________________________
? getobject(Kixtart.org.Signature)