Results 1 to 6 of 6

Thread: curious shark

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247

    Talking

    What is the difference between these two lines?

    Msgbox XYZ = (XYZ = True)

    Msgbox XYZ = (XYZ AND True)
    Mako Shark
    Great White

  2. #2
    Guest
    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).

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    Always could count on you.
    Mako Shark
    Great White

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247

    Smile Thank you

    Can you explain this to me Megatron?

    If (GetAttr("C:\") And vbDirectory) = vbDirectory Then
    Mako Shark
    Great White

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    Are you there Meg?
    Mako Shark
    Great White

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    247

    Thumbs up Thank You

    Your help has been greatly appreciated.

    I like to repost this.
    'vbDirectory=16 (binary: 10,000)
    'vbArchive=32 (binary: 100,000)
    Mako Shark
    Great White

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width