Skip to main content

Problem:

When using CBL_ routines and setting flags, it says set bit 0, bit 1, bit 2 etc.

Is bit 0 on the left or right end?

Resolution:

- go to Net Express v5.0 Online Help

- type in CBL_OR

- select the topic under it 'using to set the value of a bit'

- click 'display'

- under the 'Parameters' area, click on the link to 'Key'

- you are taken to 'Library Routines - Key'

- page down

- notice the lines:

    On Exit:

    Indicates which of the parameters shown are returned on exit.

    Where bits of one or more bytes are referenced,

    bit 0 is the least significant (rightmost) bit.

Old KB# 1214