TraceLnr Function

Purpose

Returns the number of the command line to be executed next.

Syntax

% = TraceLnr

Description

TraceLnr returns an integer, inside the Tron procedurename, that contains the line number of the program line to be executed next. Tron procedurename, specifies a subroutine which will be invoked before execution of every command. The combination of Tron procedurename and TraceLnr is a very efficient way of looking for errors.

Example

See Trace$

Remarks

In a stand-alone program (EXE) the Tron command is ignored. TraceLnr, ProcLnr(p) and ProcLineCnt(p) are 0, Trace$ and SrcCode(%) are "".

See Also

Tron, Debug, Trace, TraceLnr, TraceReg, SrcCode$, ProcLnr, ProcLineCnt, $StepOff

{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}