DataBasic Reference > Statements and Intrinsic Functions > B > BITCHECK Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

BITCHECK Function (DataBasic) (m618703+bitcheck_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

BITCHECK Function

Returns the current value of the specified bit from the bit table.

Syntax

BITCHECK(bitNumber)

Syntax Elements

bitNumber Specifies the bit to be checked.

Operation

BITCHECK operates on a table of 128 bits, numbered 1 to 128, unique to each process. Each bit is available as a two-state flag, that is, the value returned by the function is always either zero or one.

Special functions can be performed by setting bitNumber to the following values:

-1 Allows access to the system INHIBIT bit (which controls inhibiting of the Break key).

-2 Allows access to the system TRSTRFLG bit (which controls TCL restart).

-3 Allows access to the system RSTRTFLG bit (which controls BREAK-END restart).

If bitNumber is 0, less than -3, or greater than 128, BITCHECK returns 0.

See Also

BITCHANGE function, BITLOAD function, BITRESET function, BITSET function.

Example

Y = BITCHECK(76)
PRINT Y

If the value of bit 76 was 0, 0 is printed. If the value was 1, 1 is printed.

RealityV15.0Comment on this topic