Previous Topic: Descriptor Code Strings

Next Topic: OPSBN Function

OPSBITS and Variable Names

In most cases, use quotation marks to enclose variable names specified with OPSBITS, as shown in the following example:

msg.desc = opsbits('hilite')

You must use quotation marks if you use hilite as a variable in your OPS/REXX program. The following statements are equivalent to the one immediately above:

anyvar = 'hilite'
msg.desc = opsbits(anyvar)

If you are familiar with assembler language, note that OPSBITS(1) is not the same value as the commonly used EQU symbol BIT1 because bit numbers in the assembler language start at 0 rather than 1.