Click or drag to resize

IContactDelete Method

Delete the object from the database. May throw an error if you are not allowed to delete the object. Deletes the specified contact model from the database. This may take some time, since this will call a cascade delete on contact persons, phones, addresses, emails, URLs and so on

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

Implements

IModelBaseDelete
Examples

Delete

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

Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    result = MsgBox ("This will delete your current company, are you sure?", vbInformation + vbYesNo, "SuperCOM")
    if result = vbYes then
        objSO.CurrentContact.Delete
    else
        msgbox �The company was not deleted?�, vbInformation + vbOkOnly, �SuperCOM�
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also