GUIBuilder: _label Utility - Convert Line Numbers to Line Labels (Superseded)

GUIBuilder has been superseded by the AppBuilder module in the BASIS IDE for BBj. Includes support for both the READRECORD Event Queue and PROCESS_EVENTS/CALLBACK paradigm. Integrates tightly with FormBuilder, the BBj replacement for ResBuilder.

Syntax

call "_label",inpgm$,outpgm$,errmsg$,always_create

Description

The _label utility scans a tokenized PRO/5 program for all line number references, converts them to line label references, and generates line labels as necessary. The utility writes the output to a separate program file.

Argument

Description

inpgm$

Name of the source program. It will not be modified in any way.

outpgm$

Output (target) program. If it exists, it will be erased.

errmsg$

  • Returned as "" if outpgm$ was created correctly.

  • Returned as "OK" if no conversions were necessary and outpgm$ was not created.

  • Returned as an error message if a problem was encountered.

always_create

If 0: Do not create outpgm$ if there are no line labels to convert.

If 1: Create outpgm$ even if there are no line labels to convert.

See Also

Alphabetical Utilities

Functional Listing of Utilities