BREF

Produces a sorted cross-reference list of variables and labels in a DataBasic program.

Syntax

BREF {(option}

Option

P Sends the listing to the printer.

Comments

BREF gets its listing from the CSYM file (if the CSYM file is not already present on your account, you must create it). To place a cross-reference item in the CSYM file, the program must have been compiled using the X option.

The example below shows a BREF display. Each item contains the line number(s) on which that label or variable is referred to. An asterisk (*) is appended to line numbers where the variable's value might change, such as an assignment statement (with the exception of function and subroutine parameters).

16:30:03   27APR 1995                                 PAGE 1
SYSTEM CROSS-REFERENCE
CSYM             TYPE       REFERENCES
E .  .  .  .  .             002041
ST.NUM .  .                 004* 016* 016 040* 041 046
FLAG .  .  .                015* 018* 039
99                          017* 044
3 .  .  .  .  .             021 035*
I .  .  .  .  .             020* 020* 021 022 023 024
                            025* 027* 027 028 030*
                            033 046* 046* 047
SP .  .  .  .  .            038* 039* 041
BUF .  .  .  .              001* 044
STRINGS .                   003 016* 041* 047