protect Parameter

Sets classes to be protected on display.

Scope: View

Syntax

query protect 
set protect [ClassName] [ClassName] [...] 

Option

ClassName 
List of valid classes to be protected, separated by blanks. The maximum number of classes is 30.

Description

The protect parameter ensures that classes specified are protected against overtyped changes (even if browse is off). Changes by other means, such as macros, are still allowed.

Example

To protect lines containing CODE and BRACE classes from being overtyped, type:

set protect code brace 

API Return Codes

-2 
The ClassName was not a valid class type. Use the query classes command to see which ClassNames are currently defined, or use the set class command to define a new class. Issue the command again using valid ClassNames.

browse Parameter