|
-
Sep 18th, 2000, 05:39 PM
#1
Thread Starter
Addicted Member
What is the difference between these two lines?
Msgbox XYZ = (XYZ = True)
Msgbox XYZ = (XYZ AND True)
-
Sep 18th, 2000, 05:50 PM
#2
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).
-
Sep 18th, 2000, 07:17 PM
#3
Thread Starter
Addicted Member
Always could count on you.
-
Sep 19th, 2000, 10:48 PM
#4
Thread Starter
Addicted Member
Thank you
Can you explain this to me Megatron?
If (GetAttr("C:\") And vbDirectory) = vbDirectory Then
-
Sep 20th, 2000, 11:54 AM
#5
Thread Starter
Addicted Member
-
Sep 20th, 2000, 04:46 PM
#6
Thread Starter
Addicted Member
Thank You
Your help has been greatly appreciated.
I like to repost this.
'vbDirectory=16 (binary: 10,000)
'vbArchive=32 (binary: 100,000)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|