Click or drag to resize

IProjectMemberCancelChanges Method

Undo any changes made since the object was loaded. If you made changes to the model that you don’t want to be saved to the database, call the CancelChanges method.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void CancelChanges()

Implements

IModelBaseCancelChanges
Examples

CancelChanges

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO
Dim result
Dim projMemb
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    projMemb = ObjSO.Database.GetProjectMember(1)
    ProjMemb.Comment = "This will change the text in the comment field. "
    result = MsgBox ("Do you want to save the changes that was made to the comment field?", vbInformation + vbYesNo, "SuperCOM")
    if result = vbYes then
        projMemb.ChangeIdentity(1)
    else
        projMemb.CancelChanges
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also