Display (command)

From BR Wiki
Jump to navigation Jump to search

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.

See Also