gmplOutputStatement
- Mark Juras
Owned by Mark Juras
Output Statement Summary
Output is a terminal, command statement that can occur only in command scripts. The statement specifies where information being output should be written and how it should be formatted. The attributes of the Output statement are as follows:Attribute | Description |
Filename | This attribute contains the full pathname of the text file that is to receive the output to be produced. If this attribute is omitted, the standard output file is used. |
Status | This attribute specifies the status of the file: New means create a new file; Old means open an existing file and append the coming output at its end; and Close means simply close the current file. If omitted, then New is assumed. |
Syntax | Besides authoring record-oriented translations, gmBasic can also be used to write tabular reports based on the information collected while it was processing the source codes. This attribute specifies the output style to be used when producing these tabular reports. They can be produced in one of three styles: Tabbed simple tab delimited; Text text tabular; or Html html tabular. The default style is Text. |
Striptrail | This flag attribute, if On, requests that any trailing blanks be stripped from output records. This attribute is rarely needed. |
The output produced by the Author statement, though controlled by an Output statement which must precede it, is actually first sent to a text buffer where it can be edited via Fix statements. It is the records within this text buffer that are then ultimately written to the Filename specified here. The script errors associated with the Output statement are as follows:
Error | Description |
1139 | The Output style keyword [%1d] is not accepted. |
1140 | The Output status keyword [%1d] is not accepted. |
Table of Contents