GetItemID |
Returns the ID of a DropCombo-item or DropButton-item.
Prototype:
GetItemID(LONG ControlID, <LONG Index>),LONG
Arguments:
ControlID |
ID of the control |
Index |
Optional. Specifies which item you want to get the ID from. If this argument is omitted the currently selected item will be used for DropCombo's. If it's a DropButton, the first item will be returned. |
Return value:
Returns a LONG containing the ID. Returns -1 string if Index is out of bounds. If not ID has been set, 1 based index value is returned.