Difference between revisions of "DOLEVEL()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to return the 'do' level of the currently executing program or procedure | Function to return the 'do' level of the currently executing program or procedure | ||
Line 12: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[DEBUG]], [[DO]], [[MESSAGE]], [[MESSAGE()]], [[PATH()]], [[PROCLIBS()]], [[PROCLINE()]], [[PROCNAME()]], [[PROGRAM()]], [[RESUME]], [[SET DEBUG]], [[SET DOHISTORY]], [[SET ECHO]], [[SET HISTORY]], [[SUSPEND]], [[SYS()]] | + | [[DEBUG]], [[DO]], [[LEVEL()]], [[MESSAGE]], [[MESSAGE()]], [[PATH()]], [[PROCLIBS()]], [[PROCLINE()]], [[PROCNAME()]], [[PROGRAM()]], [[RESUME]], [[SET DEBUG]], [[SET DOHISTORY]], [[SET ECHO]], [[SET HISTORY]], [[SUSPEND]], [[SYS()]] |
Line 39: | Line 35: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 15:28, 14 June 2011
Purpose
Function to return the 'do' level of the currently executing program or procedure
Syntax
DOLEVEL()
See Also
DEBUG, DO, LEVEL(), MESSAGE, MESSAGE(), PATH(), PROCLIBS(), PROCLINE(), PROCNAME(), PROGRAM(), RESUME, SET DEBUG, SET DOHISTORY, SET ECHO, SET HISTORY, SUSPEND, SYS()
Description
The DOLEVEL() function returns the 'do' level of the currently executing program or procedure. Issued at the command prompt, the DOLEVEL() function returns 0. Issued in a master or calling program, DOLEVEL() returns 1. Subsequent called programs or procedures are at a 'do' level based on the program nesting.
Example
> ? dolevel() 0 //master.prg procedure subproc1 ? dolevel() ? return ? dolevel() subproc1() //end of master.prg > do master 1 2
Products
Recital Server, Recital