Removes an object or item at runtime.
To remove |
Use |
---|---|
A NotificationBubble object |
|
An appointment, contact, or task from Pocket Outlook |
Removes a notification bubble and its icon in the notification tray.
NotificationBubble object
Integer controlname.Remove ( )
Argument |
Description |
---|---|
controlname |
The name of the notification bubble that you want to remove |
Integer. Returns 1 for success, -1 if an error occurs. Typically this is a benign error, because the user has already acknowledged the notification.
If you do not remove the notification bubble and the user does not acknowledge the notification, the NotificationBubble object could remain in memory and its icon in the notification tray.
The following example removes a NotificationBubble from a user’s system:
li_rtn = nb_myBubble.Remove()
Removes an appointment, contact, or task from Pocket Outlook.
POOM objects
Integer objectname.Remove ( entity )
Argument |
Description |
---|---|
objectname |
The name of the POOM object |
entity |
Entity of type POOMAppointment, POOMContact, or POOMTask that you want to remove |
Integer. Returns 1 for success and one of the following negative values if an error occurs:
-2 Cannot connect to the repository or a required internal subobject failed to connect to the repository
A user must be logged in to a POOM object to remove an appointment, contact, or task.
The following example gets the task with the index 3 and removes it from the repository:
integer li_rc POOMTask task task = g_poom.GetTask( 3 ) li_rc = g_poom.Remove( task )