Function SetBit() Foundation

Sets one or more bits of an integer to 1.

Syntax
SetBit( <nInteger|cHex> , ;  // Type: NC
        <nBitPos1>      , ;  // Type:  N
        [<...nBitPos32>]  ;  // Type:  N
      ) --> nNewValue
Return

Returns an integer with the bits set at the specified position(s).

Description

<nInteger> is a 16 or 32 bit integer which may be specified alternatively as a string coded as a hexadecimal number.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.