Navigation: Ultimate Suite for PowerBuilder Help > Outlook ShortcutBar > Functions >

of_additem

Send comments on this topic.

 

Description:

Adds an item to the control.

Syntax:

of_additem (dragobject a_object, string as_text, string as_image)
of_additem (dragobject a_object, string as_text, string as_image, long al_id)

Argument

Description

a_object

The object that will display when the items button is clicked.

as_text

The text of the item that's being added to the control.

as_image

The file name of the image used in the item. You can use a PowerBuilder image (e.g. "sql!").

al_id (optional)

A value you can assign to the shortcut item so you can uniquely identify it. If not provided, a value of 0 will be used.

Return Value:

Returns a number representing the index of the new item that was added. You can use this index value when calling other Outlook Shortcutbar functions.

Usage:


Copyright © 2021 Werysoft Inc.