Function Reference

_GUICtrlComboGetList

Retrieves all items from the list portion of a ComboBox control.

#include <GUICombo.au3>
_GUICtrlComboGetList ( $idCombo [, $sDelimiter = "|" ] )

 

Parameters

$idCombo Control ID of the combo.
$sDelimiter Delimeter used to seperate each item (Defaults to |).

 

Return Value

Delimited string of all ComboBox items.

 

Remarks

None.

 

Related

_GUICtrlComboGetLBText

 

Example


#include <GUIConstants.au3>
#include <GUICombo.au3>

GUICreate("My GUI combo")

Global $g_idCombo = GUICtrlCreateCombo ("", 10, 10, 100, 120)
GUICtrlSetData($g_idCombo, "item1|item1")

GUISetState ()

While 1
    If GUIGetMsg() = $GUI_EVENT_CLOSE Then ExitLoop
Wend

MsgBox(4096, "", _GUICtrlComboGetList($g_idCombo))