Important: The information in this document is obsolete and should not be used for new development.
BitAnd
You can use theBitAndfunction to perform theANDlogical operation on two long words.
FUNCTION BitAnd (value1, value2: LongInt): LongInt;
value1- A long word.
value2- A long word.
DESCRIPTION
TheBitAndfunction returns a long word that is the result of performing theANDoperation on the long words specified by thevalue1andvalue2parameters. Each bit in the returned value is set if and only if the corresponding bit is set in bothvalue1andvalue2.SEE ALSO
For an illustration of the result of performing an operation using theBitAndfunction, see Figure 3-9 on page 3-16.