What is the difference between these two lines?
Msgbox XYZ = (XYZ = True)
Msgbox XYZ = (XYZ AND True)
Printable View
What is the difference between these two lines?
Msgbox XYZ = (XYZ = True)
Msgbox XYZ = (XYZ AND True)
The first one implys that XYZ is True, meaning XYZ = 1 (Because True is a constant for 1).
The second one means that your are applying the logic AND operator, hence the value of XYZ might change with regards to what bits it has (and how AND affects it).
Always could count on you.
Can you explain this to me Megatron?
If (GetAttr("C:\") And vbDirectory) = vbDirectory Then
Are you there Meg?
Your help has been greatly appreciated.
I like to repost this.
'vbDirectory=16 (binary: 10,000)
'vbArchive=32 (binary: 100,000)