Main Program Procedure [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
Main Program Procedure
The main program of a compiled program is not an outer block, but a
procedure. The outer block of a compiled HP Business BASIC/XL program
initializes the program and then calls the main program. The name of the
outer block is always BB_PROGRAM. The name of the main program procedure
is the upshifted name of the file that contains the program source code;
for example, if the filename of the file containing the program is
MYPROG.MYGROUP, the main program procedure name is MYPROG.
The main program procedure can be put into an executable library and
called as an external subunit. If you compile a program from within the
interpreter without specifying the name of the file, the name of the
current program will be the name of the main procedure entry point. If
the current program does not have a name, BBCINP will be the entry point
name. See "Calling External Subunits from Interpreter" later in this
chapter for more details.
MPE/iX 5.0 Documentation