Remove

Removes an object or item at runtime.

To remove

Use

A NotificationBubble object

Syntax 1 For NotificationBubble objects

An appointment, contact, or task from Pocket Outlook

Syntax 2 For POOM objects


Syntax 1 For NotificationBubble objects

Description

Removes a notification bubble and its icon in the notification tray.

Applies to

NotificationBubble object

Syntax

Integer controlname.Remove (  )

Argument

Description

controlname

The name of the notification bubble that you want to remove

Returns

Integer. Returns 1 for success, -1 if an error occurs. Typically this is a benign error, because the user has already acknowledged the notification.

Usage

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.

Examples

Example 1

The following example removes a NotificationBubble from a user’s system:

li_rtn = nb_myBubble.Remove()

See also


Syntax 2 For POOM objects

Description

Removes an appointment, contact, or task from Pocket Outlook.

Applies to

POOM objects

Syntax

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

Returns

Integer. Returns 1 for success and one of the following negative values if an error occurs:

Usage

A user must be logged in to a POOM object to remove an appointment, contact, or task.

Examples

Example 2

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 )

See also

Add