SWITCHBIT (FUN)

 

FUNCTION SWITCHBIT : DWORD

Switches a bit of a DWORD value

See also: PUTBIT and EXTRACT.

InOut:

Scope

Name

Type

Comment

Return

SWITCHBIT

DWORD

Value with the switched bit

Input

X

DWORD

Value to be manipulated

N

BYTE

Position of the bit to switch, starting with 0