MAINSAIL Language Manual, Section 34.1

previous   next   top   contents   index   framed top   this page unframed


34.1. enterLogicalName

Figure 34–1. enterLogicalName
PROCEDURE   enterLogicalName
                        (
STRING logicalName,trueName);

enterLogicalName establishes or removes a logical file name. If trueName is not the null STRING, then after the call to enterLogicalName, whenever logicalName is passed as a file name to the PROCEDURE open, the file named trueName is actually opened. If trueName is the null STRING, any logical file name association for logicalName is removed.

For example, after executing:

enterLogicalName("parameters","src:parms.txt")

the call to open:

open(f,"parameters",...)

attempts to open the file src:parms.txt instead of the file parameters.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 34.1