IWxWorkspace.Modified

Syntax

Modified: Boolean;

Description

The Modified property returns True if there are any changes made in a workspace.

Example

Executing the example requires an existing ws object of the IWxWorkspace type, which was previously opened for edit.

Sub UserProc;

Var

ws: IWxWorkspace;

Begin

If ws.Modified Then

WinApplication.YesNoCancelBox("There are changes made in the workspace. Save?", Yes);

If Yes Then

(ws As IMetabaseObject).Save;

End If;

End If;

End Sub UserProc;

After executing the example and in case there are any changes made in a workspace, the user is prompted to save them.

See also:

IWxWorkspace