iOS Bitwise

  1. 2 weeks ago

    Garry P

    Apr 13 Pre-Release Testers, Xojo Pro Europe (Torquay, UK)

    Does anyone have any code they are willing to share to perform a Bitwise AND and Bitwise OR on two values that would work on iOS (since the Bitwise module does not exist)?

    Thanks,

    dim x, y as integer
    x = 255
    y = x and 4   // gets 4.. correct
    
    x = 1
    y = x or 4   //y is now 5, correct
  2. Jeff T

    Apr 13 Pre-Release Testers Answer Midlands of England, Europe
    dim x, y as integer
    x = 255
    y = x and 4   // gets 4.. correct
    
    x = 1
    y = x or 4   //y is now 5, correct
  3. Garry P

    Apr 13 Pre-Release Testers, Xojo Pro Europe (Torquay, UK)

    Ha, thanks. I hadn’t realised the dual functionality of the And keyword.

  4. Kem T

    Apr 13 Pre-Release Testers, Xojo Pro, XDC Speakers New York

    This works, and is faster, in all project types.

or Sign Up to reply!