LST() Function - List Program Fragment

Syntax

LST(stringA{,stringB}{,ERR=lineref})

Description

For BBj-specific information, see the LST() Function BBj.

The LST() function returns the listed form of a compiled PRO/5 command line.

Parameter

Description

stringA

Information about the command line created by the PRO/5 compiler or the CPL() function.

stringB

Variable table necessary to list any variables that may be present in stringA. See the CPL() function for additional information on the variable table. If stringB is not given, PRO/5 defaults to the variable table of the current workspace program.

ERR=lineref

Branch to be taken if an error occurs during execution.

The CPL() function is the complementary function to LST().

LST() is for utility purposes only and should never be used in application programs.

Examples

In the following example, CPL$ is a compiled BASIC statement that is converted into LIST format and placed in TEXT$.

0100 LET TEXT$=LST(CPL$)

See Also

Functions - Alphabetical Listing