MAINSAIL Language Manual, Section 48.4

previous   next   top   contents   index   framed top   this page unframed


48.4. $targetSystemBaseFileNameSuffix

Figure 48–4. $targetSystemBaseFileNameSuffix (GENERIC)
STRING
PROCEDURE   $targetSystemBaseFileNameSuffix
                         (
OPTIONAL STRING s);

STRING
PROCEDURE   $targetSystemBaseFileNameSuffix
                         (
INTEGER systemNumber);

When passed an operating system abbreviation or operating system number, $targetSystemBaseFileNameSuffix returns the system-dependent part of the STRING used in forming the default objmod and intmod file names for the specified operating system (the “file abbreviation”). The file abbreviation is generally either the same as the system name abbreviation, or the first 3 characters of the system name abbreviation. For example, $targetSystemBaseFileNameSuffix("uspa") returns "usp".

If no argument is passed, the file abbreviation for the current operating system is returned.

The STRING form of $targetSystemBaseFileNameSuffix may return a substring of its argument, so that if the result is to be used in a file name and the input STRING might not be all lowercase, you should convert the result to lower case explicitly.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 48.4