gui.getComboBoxSelectedItemText

Returns the text of a selected comboBox item.

Prototype

  1. sText = gui.getComboBoxSelectedItemText ( hComponent )

Description

Returns the text of a selected comboBox item.


Parameters

hComponent - valid GUI component handle


Return values

sText - text string


Sample

  1. function setupFindDialog ( hView )
  2.  
  3. if ( hView ) then
  4. local hComponent = gui.getComponentFromView ( hView, "Find.combo.options.result" )
  5. if ( hComponent ) then
  6. local sPreviousOptionsResult = gui.getComboBoxSelectedItemText ( hComponent )
  7. -- etc.

Available since ShiVa 2.0