Display (command): Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
No edit summary |
||
Line 1: | Line 1: | ||
The '''Display''' [[command]] shows the value of individual [[variable]](s) or all variables, after any changes, plus the [[line number]] associated with the change(s), in the format: | The '''Display''' [[command]] shows the value of individual [[variable]](s) or all variables, after any changes, plus the [[line number]] associated with the change(s), in the format: | ||
line-number (that caused the change) variable-name new-value | line-number (that caused the change) variable-name new-value | ||
Note that whole arrays can be referenced by DISPLAY statements. For example: | |||
DISPLAY MAT CUSTOMER$ | |||
This displays all changed values in an array whenever values are changed. | |||
For disambiguation purposes, see also [[Open Display|Display Files]]. | For disambiguation purposes, see also [[Open Display|Display Files]]. |
Revision as of 16:20, 23 September 2014
The Display command shows the value of individual variable(s) or all variables, after any changes, plus the line number associated with the change(s), in the format:
line-number (that caused the change) variable-name new-value
Note that whole arrays can be referenced by DISPLAY statements. For example:
DISPLAY MAT CUSTOMER$
This displays all changed values in an array whenever values are changed.
For disambiguation purposes, see also Display Files.
Syntax
DISPLAY [<-p program name substring>] {[<variable name>]|[ALL]} {[OFF]|[PRINT]|[>[>] <output file>]}
The -p parameter specifies which program or programs the statement pertains to. If not specified, then the full BR path to the current program is stored as the program name search string. However the substring value could be used as a mask to apply to multiple program libraries.