ProvideX V8.20 > Language Reference > 2. Directives
105
DUMP Directive
         Display Variables
Format
DUMP [(chan)][n|-n|*] [OBJECT obj_id]
Where:
chan
Channel or logical file number of the file to receive the dump / output
of all variables in use by the current program.
n|-n|*
Value indicating dump level. A positive number indicates a specific level
to dump. A negative number represents one level below the current
number on the program stack; e.g., DUMP -1 at level 4 dumps level 3. An
asterisk dumps all levels in succession.
OBJECT
Object Oriented Programming (OOP) - Optional keyword for invoking
a dump of an active object.
obj_id
Object identifier of the object.
Description
Use the DUMP directive to get a listing of all variables/properties in use by the
current program/object. The output is sent to the specified file number. If you omit
the file number, the console, file (0), is the default. The output includes the value of
the system variable ERR, the current program name, line number, the
FOR/NEXT-GOSUB/RETURN stack, and all variables that contain data.
Examples
The following illustrates the use of DUMP for listing variables in a program:
->DUMP
! ERR=0, CTL=0, RET=2
! Level=1
! PGN="C:\OTHER\PGMS\PVX\PVX_TESTS"
A$=$000000$+"T0 "+$0F0000000000000000$+"*"+$0100000700$+"CON
"+$0000$+"P"+$190100000000$+"P"+$190000$+"P"+$190000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000$+"WINDOWS
"
CUST$="<*>  IOLIST NAME$,ADR1$,ADR2$"
CUST.ADR1$="123 SOME ST."
CUST.ADR2$="ANYTOWN SK S0M 0V0"
CUST.NAME$="M MOUSE"
DT$="04/01/99"
F$="abcd"
R$="ab"
X$="M MOUSE"+SEP+"123 SOME ST."+SEP+"ANYTOWN SK S0M 0V0"+SEP
%NORM_SCR$=ESC+"F7"+ESC+"B4"
%ST_ATTR$=$000007$
%W_MSG$=ESC+"F0"+ESC+"B6"