ListBasic routine

Outputs a formatted listing of a BASIC+ program, either to the printer directly, or in Print Preview mode.

ListBasic(program, mode, options)

The ListBasic routine has the following parameters.

ParameterDescription
ProgramThe 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).
mode0 = print to default printer

1 = print in Print Preview mode
options"L" = landscape orientation

"P" = portrait orientation

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"
  • guides/programming/programmers_reference_manual/listbasic.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1