ISelectionCancelChanges Method |
Namespace: SuperOffice.COM.SuperOfficeDB
CancelChanges
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO Dim result Dim id Set objSO = CreateObject("SuperOffice.Application") If not (objSO is nothing) Then id = objSO.CurrentSelection.Identity objSO.CurrentSelection.Description = "This text been changed" result = MsgBox ("The text of the current selection text has been changed, do you want to save these changes?", vbInformation + vbYesNo, "SuperCOM") if result = vbYes then objSO.CurrentSelection.ChangeIdentity(id) else objSO.CurrentSelection.CancelChanges() msgbox "The selection text changes was not saved", vbInformation + vbOkOnly, "SuperCOM" end if else MsgBox "Unable to connect to database" end if Set objSO = Nothing