5-14 Command Reference
BITCLEAR
Purpose Sets the specified bit to zero.
Syntax BITCLEAR
buffer-field, bit-position
[ , [
invalid label
] [ ,
valid label
] ]
Process The BITCLEAR command sets the specified bit by
bit-position
in
buffer-field
to
zero.
Bit-position
can be 0 to 15. If
bit-position
is out of range and
invalid label
is
defined, control passes to that label.
Buffer-field
and
bit-position
can be one of the following:
Asc-field
and
Int-field
Description
INPUT Input Buffer
Logical Field Name
(TEMP1)
Temporary Buffer
Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Logical Field Name
(Field1) [Index]
Array Buffer Field
Asc-field only:
Number
String
A number prefixed by
the number sign (#)
ASCII string delimited
by double quotes
SCRATCH Scratch buffer
Optional Fields
Invalid
and
valid labels
are discussed in “Script Flow" at the beginning this chapter.
Example
This example sets bit number two of TEMP1 to zero.
BITCLEAR TEMP1, #2
See Also BITMASK
BITSET
BITSHIFT
BITTEST