Display (command): Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by one other user not shown)
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 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
  line-number (that caused the change)  variable-name  new-value
Line 5: Line 5:
Note that whole arrays can be referenced by DISPLAY statements. For example:
Note that whole arrays can be referenced by DISPLAY statements. For example:
  DISPLAY MAT CUSTOMER$  
  DISPLAY MAT CUSTOMER$  
This displays all changed values in an array whenever values are changed.  
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 [[Open Display|Display Files]].
For disambiguation purposes, see also [[Open Display|Display Files]].
Line 17: Line 21:
==See Also==
==See Also==


*[[Break]]
*[[Break (command)]]
*[[Display (disambiguation)]]
*[[Display (disambiguation)]]
*[[Display Buttons]]
*[[Display Buttons]]

Latest revision as of 18:35, 10 November 2019

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