Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 3 - Mathematical and Logical Utilities / Mathematical and Logical Utilities Reference
Routines / Performing Logical Operations


You can use the BitOr function to perform the OR logical operation on two long words.

FUNCTION BitOr (value1, value2: LongInt): LongInt;
A long word.
A long word.
The BitOr function returns a long word that is the result of performing the OR operation on the long words specified by the value1 and value2 parameters. Each bit in the returned value is set if and only if the corresponding bit is set in value1 or value2, or in both value1 and value2.

For an illustration of the result of performing an operation using the BitOr function, see Figure 3-9 on page 3-16.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996

Get information on Apple products.
Visit the Apple Store online or at retail locations.

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice