Description
Outputs a formatted listing of a BASIC+ program, either to the printer directly, or in Print Preview mode.
Syntax
ListBasic(program, mode, options)
Parameters
The ListBasic routine has the following parameters.
Parameter | Description |
---|---|
Program | The name of the BASIC+ program to be printed. The program must exist as a record in either SYSPROCS (for a stored procedure) or SYSREPOSEVENTS (for a program in an event handler). |
mode | 0 = print to default printer 1 = print in Print Preview mode |
options | "L" = landscape orientation "P" = portrait orientation |
Example
The following command, run from the System Monitor, will print a formatted listing of the BASIC+ program MYPROGRAM, in landscape mode, to the default printer.
run ListBasic "MYPROGRAM", 0 , "L"