CALL VARLIST
This page was last modified 13:00, 18 May 2020 by Mars2000you.

Contents

Effect

Displays a list with all the variables already used by a MSX-BASIC program that is in the computer memory. In case of variables with more than 2 characters, only the two first characters are taken in account.

For each variable, the list includes all the line numbers that use this variable. The array variables can be found at the end of the list.

Syntax

CALL VARLIST ("<Variable>",P)

All the parameters are optional. Parameters can not end with a comma alone.

Parameters

Without any parameter, the complete list will be displayed on the screen.

<Variable> is used to limit the list to the line numbers for a specified variable (maximum 2 characters). If you use an asterisk (*) as second character, the list will be limited to the line numbers for the variables beginning with the specified first character.

With the P parameter, the data will be sent to the printer.

Examples

CALL VARLIST ("C1") ' to limit the list to the variable C1
CALL VARLIST (,P) ' to send the complete list of variables to the printer
CALL VARLIST ("A*", P) ' to send  the list of variables beginning with "A" to the printer

Using

The execution of the instruction can be paused by pressing STOP. You can then resume it by pressing STOP again.

To completely stop the execution of this instruction, you need to press CTRL+STOP.

Related to

CALL FIND, CALL XREF

Compatibility

MSXAid BASIC