f$Word: End
f$Word: End
Finish text generation.
All field functions are updated, any existing table of contents is rebuilt, etc. If a macro was specified it will be executed. Last, the document is saved, however Word remains open with the generated file, except if the option end, quit or close was specified.
Syntax: | Status = f$Word('End','Macro','Option') | ||
| Argument | Type | Meaning |
| End | String | Keyword |
| Macro | String | Macro to be carried out or empty string ('') |
| Option | String | Keyword 'Print' – Document is printed on the default printer 'Close' - the currently active document is closed 'Quit' – Word is quit without saving the document. |
Result: | Integer | 0: Command successfully executed -1: The document of intent cannot be saved. | |
Example: | Status = f$Word('End','','End') | ||