PslProject.Close
Closes the project. After the project is closed most functions of the project object will return an error message.
Syntax
Expression.Close (Savechanges as Variant)
Expression Required. Object of type PslProject
Savechanges Variant, optional. Specifies the method of handling string lists, which were changed but not yet saved. The following values are possible:
pslSaveChanges (default, Value = 0) : All changed string lists will be saved
pslPromptToSaveChanges (Value = 1): Messages will be displayed, so that the user can decide, if he wants to save a string list or not.
pslPromptWithCancel (Value = 2): Messages will be displayed similar to pslPromptToSaveChanges. Additionally the messages will contain a [Cancel]-Button, so that the User can stop closing the project.
pslDoNotSaveChanges (Value = 3): The string lists will be closed without saving the changes.
Example
Dim prj As PslProject
Set prj = PSL.Projects(1)
prj.Close
PSL.Output("The first project was closed")