Navigation: Ultimate Suite for PowerBuilder Help > Button ListBar > Functions >

of_additem

Send comments on this topic.

 

Description:

Adds an item to the list with an optional paramater for data.

Syntax:

of_additem (string as_text, string as_image, any aa_data)
of_additem (string as_text, string as_image)

 Argument

Description

 as_text

The text of the button that's being added to the button listbar.

 as_image

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

 aa_data (optional)

Data that is associated with the item being added.

Return Value:

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

Usage:

 


Copyright © 2021 Werysoft Inc.