Update

Updates a change to an object or to a repository item at runtime.

For syntax for DataWindows and DataStores, see the Update method for DataWindows in the online Help.

To update

Use

A NotificationBubble object

Syntax 1 For NotificationBubble objects

An appointment, contact, or task from Pocket Outlook

Syntax 2For POOM-related objects


Syntax 1 For NotificationBubble objects

Description

Notifies the Windows CE operating system that properties of a notification bubble control have changed.

Applies to

NotificationBubble objects

Syntax

Integer controlname.Update (  )

Argument

Description

controlname

The name of the notification bubble that has been created

Returns

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

Usage

The Update function is the main action method for a NotificationBubble object. The first time it is called, it creates the notification bubble in the operating system. Subsequent calls notify the operating system that notification fields have changed.

The NotificationBubble must be associated with a visual control. You assign the visual control with the SetMessageSink function. If the NotificationBubble object is not associated with a visual control, the Update function returns a -4 error.

Examples

Example 1

The following example notifies Windows CE that a notification event has occurred and that the nb_myBubble NotificationBubble object has been created or updated:

nb_myBubble.caption = "Updated Caption"

li_rtn = nb_myBubble.Update()

See also


Syntax 2For POOM-related objects

Description

Updates an existing appointment, contact, or task in the POOM repository.

Applies to

POOMAppointment, POOMContact, POOMTask objects

Syntax

Integer objectname.Update ( )

Argument

Description

objectname

The name of the POOMAppointment, POOMContact, or POOMTask object

Returns

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

See also