BLIST Command

Use BLIST to produce a formatted listing of a mvBASIC program. Output is sent to the printer unless the T (terminal) option is specified.

Format

BLIST filename progname-list [(options)]

Parameter(s)

filename

Name of a file that contains mvBASIC programs.

progname-list

Item-IDs of the programs you want to list. An asterisk (*) specifies all programs in the file.

options

The following options are supported:

n

Number of a line.

n-m

Specifies a range of lines.

D

Double-spaces lines.

T

Displays output on the screen.

Description

BLIST indents five spaces to make room for statement labels. All other indents are three spaces. You can use the Editor to modify these default values by changing line 4 of the Command Definition item in the Master Dictionary. Line 4 contains:

004 0503

05 specifies the first indent, 03 specifies subsequent indents.

NOTE

BLIST does not follow the standard TCL convention of sending output to the screen. You must explicitly specify the T option from BLIST to send output to the screen.

Listing an mvBASIC Program

The following example lists a portion of the program FX. Since the T option was not specified, output is sent to the printer:

>BLIST BASICLIB FX

 

0182   LMIDS = 0

0183   LMID = ""

0184   PRINT @(30,7):LMID"#50"

0185   RETURN

0186   ****************************************

0187   *

0188   *        INPUT LOCAL ITEM-ID

0189   *

0190   ****************************************

0191   500     PRINT @(2,21):@(-3):

0192   PRINT @(10,21):"Return Local mvBase Item-ID - ":

0193   ECHO ON

0194   INPUT LMID

0195   ECHO OFF

0196   IF LMID = "" THEN

0197        PRINT @(30,7):"Select List""#50"

0198       LMIDS = 0

0199       RETURN

0200   END

0201   PRINT @(30,7):LMID"#30"

0202   GOSUB 2200

0203   RETURN