Sign in Join
FPDoc Onlineexperiment

TShortIntHelper.ToggleBit function

Member of TShortIntHelperpublicIn unit sysutils

Invert bit.

Declaration

pascal
function ToggleBit(const Index: TShortIntBitIndex): ShortInt

Description

ToggleBit reads bit value from bit number determined by argument Index, inverts it (if it was 0 it becomes 1, and vice versa), and stores it back.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.