The PROCEDURE $setSearchPath allows a user program to get the effect of the MAINEX SEARCHPATH subcommand (see Section 21.2.35 of the MAINSAIL Utilities User's Guide). For example, the effect of the subcommand:
SEARCHPATH source:* *.msl /old/*.msl
may be obtained from a MAINSAIL program with:
The PROCEDUREs $getSearchPath and $applySearchPath may be used to examine a searchpath from a program; see Section 30.15.
The searchpath pattern and path syntax may change in future releases.