Skip to content

IsFlagIn

See Also: Miscellaneous Functions, AddBitValue, RemoveBitValue, IAND operator, IOR operator

Purpose

Returns a value of True if the iFlag bit is set in the iFlags parameter.

Return Type

Boolean

Syntax

(IsFlagIn({iFlag}, {iFlags}))

Where:

  • {iFlag}: The bit pattern to check for in {iFlags}.
  • {iFlags}: The value in which to check for {iFlag}.

Example

Move (IsFlagIn(mkShift, fKeys)) To bShiftKey

If the value of fKeys was (mkShift + mkControl + mkLeft), it would return True; otherwise, it would return False.