Description: | Deletes the object. |
Syntax: | object.Delete() |
Parameters: | |
object | Required, the item |
Remarks: | Deletes the item provided that you have full delete access to the item. |
Returns: | True if the item was successfully deleted, False otherwise. |
Example: |
Dim user As Object
Dim appts As Object
Dim appt As Object
Set session = CreateObject("OfficeTalk.Session")
Call session.Logon(login name, password)
Set user = session.FindUserByLoginName("fred")
Set appts = user.Appointments
Set appt = appts.GetFirst
If appt.delete Then
MsgBox "Delete OK"
Else
MsgBox "Did not delete"
End If