BitAnd
You can use the BitAnd function to perform the AND logical operation on two long words.
FUNCTION BitAnd (value1, value2: LongInt): LongInt;
value1
- A long word.
value2
- A long word.
DESCRIPTION
The BitAnd function returns a long word that is the result of performing the AND 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 both value1 and value2.
SEE ALSO
For an illustration of the result of performing an operation using the BitAnd function, see Figure 3-9 on page 3-16.