Skip to main content
Skip table of contents

f$Word: Close document


f$Word: Close document

Close a specific document. If no document name is specified, the active document will be closed.

Syntax:

Status = f$Word('Close document','Document name',Save)

 

Argument

Type

Meaning

 

Close document

String

Keyword

 

Document name

String

Name of the document to be closed or '' to close the active document

 

Save

String

'', 'Yes' : Document will be saved
'N' or 'No' : Document will not be saved

Result:

Integer

0: Command successfully executed

-1: The specified document is not opened.

Example:

Status = f$Word('Close document','Offer.doc','')

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.