Indicate that the prefix data should be automatically maintained.
Scope: File
Syntax
query autoprefix
set autoprefix { on | off | inverse }
Options
on |
Indicates that prefix data should be
automatically maintained. This parameter should be set to
on after the file
has been loaded. The numeric part of the prefix data will be maintained as ascending sequence numbers while the file is edited. For lines that are inserted or changed, the text part of the prefix data will be replaced by the text in the prefixdefaulttext parameter. |
off |
Indicates that prefix data should not be automatically maintained. When a new line is inserted, the numeric part of the prefix data will be zero and the text part will be blank. This prefix data may be changed by setting the prefix parameter. |
inverse |
Toggles between on and off. |
Description
The autoprefix parameter indicates whether the prefix data should be automatically maintained while the file is being edited. The autoprefix parameter setting affects only the prefix data, and has no effect on the display prefix.
Example
To indicate that the prefix data should be automatically maintained, use the following command:
set autoprefix on
API Return Code
-2 |
The numeric part of the prefix data must be in ascending order before the autoprefix command can be set to on. First reorder the prefix data by using the prefix parameter or the prefixrenumber command, then issue this command again. |
![]()
prefixformat Parameter
prefixdefaulttext Parameter
prefix Parameter
