dialog_set_popuplist_items()

Set the items to display in a popup list dialog.

Synopsis:

#include <bps/dialog.h>
 
BPS_API int dialog_set_popuplist_items(dialog_instance_t dialog,
                                       const char *items[],
                                       int num_items)

Since:

BlackBerry 10.0.0

Arguments:

dialog

The dialog to update.

items

An array of strings, comprising the item list to display.

num_items

The number of strings in the items array.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The dialog_set_popuplist_items() function sets the items to display in the specified popup list dialog.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.