gui.setComboBoxItemUserData

Associates an item with a value/data.

Prototype

  1. bOk = gui.setComboBoxItemUserData ( hComboBoxItem, vValue )

Parameters

hComboBoxItem - valid comboBox item handle
vValue - number, string, constant...


Return values

bOk - true on success


Sample

  1. local hItem = gui.appendComboBoxItem ( hComponent, "Application" )
  2. gui.setComboBoxItemUserData ( hItem, kOutputTypeApplication )

Available since ShiVa 2.0