HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
2-: 41
For an array element:
TRACE IN LINE
line_num
;
array_name
(
Subscript_of_element
) =
new_value
TRACE IN LINE
line_num
; ELEMENT
n
IN ARRAY
var_name
=
new_value
Trace statements print their output on the system printer. (The system
printer is specified by the SEND SYSTEM OUTPUT TO statement. The default
is the standard list device, that is, the terminal if HP Business
BASIC/XL is running interactively.)
Every trace and untrace statement can also be a command.
Table 2-8 shows which trace statements trace lines, which trace vari-
ables and how the trace statements differ. For details about a partic-
ular trace statement, see the section about that statement.
Table 2-8. Trace Statements
---------------------------------------------------------------------------------------------
||||
| Statement | Traces lines | Traces variables |
||||
---------------------------------------------------------------------------------------------
||||
| TRACE ALL | Throughout program. | Throughout program. |
||||
---------------------------------------------------------------------------------------------
||||
| TRACE EXEC[UTION] | From execution of first | No. |
| | specified line through | |
| | execution of last | |
| | specified line. | |
||||
---------------------------------------------------------------------------------------------
||||
| TRACE EXEC[UTION] VAR[S] | No. | From execution of first |
| | | specified line through |
| | | execution of last |
| | | specified line. |
||||
---------------------------------------------------------------------------------------------
||||
| TRACE LINES | Within specified range. | No. |
||||
---------------------------------------------------------------------------------------------
||||
| TRACE PAUSE | Within specified range | No. |
| | and pauses before each | |
| | line is executed. | |
||||
---------------------------------------------------------------------------------------------
||||
| TRACE VAR[S] | No. | As specified. |
||||
---------------------------------------------------------------------------------------------
||||
| TRACE VAR[S] IN | No. | In specified program |
| | | units or lines. |
||||
---------------------------------------------------------------------------------------------
||||
| TRACE WAIT | No. | No. |
||||
---------------------------------------------------------------------------------------------
Table 2-9 matches each trace statement with the untrace statements that
partially or totally cancel it.