Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SetComboBox – PB Docs 2022 – PowerBuilder Library

SetComboBox – PB Docs 2022

SetComboBox

PowerScript function

Description

Sets the combo box for the RibbonBar control.

Applies to

RibbonBar
control

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

ItemHandle

The handle of the item (check box, combo box, large
button, small button, group) on the same level that you will set
the item.

Item

A combo box item you are setting.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, returns null.

Usage

You can also use the SetItem
function to set the combo box. Refer to SetItem for the difference between SetItem and SetComboBox.

The user events to be bound with the combo box must be defined
correctly according to the requirements of RibbonComboBoxItem. For
details, see Modified in PowerScript Reference, Selected in PowerScript Reference, and SelectionChanged in PowerScript Reference.

Examples

This example inserts a combo box and binds it with the
“Ue_ComboBoxClicked” user event, and then sets values for various
properties (including Label, PictureName, SelectionChanged, Selected,
Modified etc.) of the combo box.

See also

InsertComboBox

InsertComboBoxFirst

InsertComboBoxLast

DeleteComboBox

GetComboBox

GetChildItemByIndex


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x