$CATALOGUE Compiler Directive |
![]() ![]() ![]() |
$CATALOGUE name {GLOBAL | LOCAL}
The $CATALOGUE directive (or the American spelling $CATALOG) causes the compiler to add the program to the system catalogue with the given call name if the compilation is successful. If name is omitted, the source record name is used. When using this default name, an error will be reported if the name is not the same as the name specified in the PROGRAM, SUBROUTINE, FUNCTION or CLASS statement.
If the name does not follow the normal QMBasic name construction rules (e.g. a Pick user exit such as 50BB) it should be enclosed in quotes. The rules for catalogue name format are described with the CATALOGUE command.
Automatic cataloguing can also be performed using the CATALOGUE entry in the $BASIC.OPTIONS record as described under the BASIC command. Use of the $CATALOGUE compiler directive will override any alternative settings specified in the $BASIC.OPTIONS record.
See also: |