gui.getComboBoxItemData

Returns the data associated with a comboBox item.

Prototype

  1. vValue = gui.getComboBoxItemData ( hComboBoxItem, kDataRole )

Description

If you need to store more data than we planned for in the predefined dataRole constants, you can add your own ones with +1, +2, etc.


Parameters

hComboBoxItem - valic comboBox item handle
kDataRole - predefined dataRole constant


Return values

vValue - associated data


Sample

  1. local hIcon = gui.getComboBoxItemData ( gui.getComboBoxSelectedItem ( hComboBox ), gui.kDataRoleUser + 1 )

Available since ShiVa 2.0