CTLCHAR

Read syntax diagramSkip visual syntax diagram
>>-CTLCHAR--+-character-+--+-ESCAPE----+-----------------------><
            '-OFF-------'  +-PROTECT---+   
                           +-NOPROTECT-+   
                           '-OFF-------'   

CTLCHAR sets a control character's function.

Operands

character
specifies a control character to use.
OFF
drops all definitions of control characters if OFF is used without specifying a character or drops the specific character if one is specified.
ESCAPE
specifies that the following character in the string, passed to the RESERVED command, is a control character.
PROTECT
specifies that the string passed to the RESERVED command is protected from user input.
NOPROTECT
specifies that user input, passed to the RESERVED command, is allowed on this string.

Return codes

0
Normal return
202
Invalid operand

Example

'CTLCHAR ! ESCAPE'
'CTLCHAR % PROTECT'
'RESERVED 20 HIGH !% Important Info'

This example defines ! as the escape character and % as the field protection character. After you enter these commands, the screen line 20 will be protected and contain the text that follows the control characters, !%.



rvse517.html | Timestamp icon Last updated: Monday, 5 June 2017