Documentation Center

PslProjects.Close

Closes all open projects.

Syntax

Expression.Close (Savechanges as Variant)

Expression Object of type PslProjects

Savechanges Specifies the method of handling string lists, which were changed but not yet saved. The following values are possible:

pslSaveChanges (Value = 0) : All changed string lists will be saved

pslPromptToSaveChanges (Value = 1): Messages will be display, so that the user can decide, if he wants to save a string list or not.

pslPromptWithCancel (Value = 2): Messages will be displayed simular to pslPromptToSaveChanges. Additionally the messages will contain a [Cancel]-Button, so that the user can stop closing the projects.

pslDoNotSaveChanges (Value = 3): The string lists will be closed without saving the changes

Example

PSL.Projects.Close
PSL.Output("All Project Windows were closed")