Display (command)

From BR Wiki
Jump to navigation Jump to search

The Display command shows changes to the value of individual variable(s) or all variables, 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 the CUSTOMER$() array whenever values are changed.

Changes to individual array elements can also be displayed:

DISPLAY CUSTOMER$(5)
DISPLAY CUSTOMER$(7)

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