Home List boxes LIST BOX - GET SELECTED ITEM (AES 174, 8) LIST BOX - GET NUMBER OF VISIBLE ITEMS, SLIDER B (AES 174, 10)

2.4.15 LIST BOX - GET ITEM INDEX (AES 174, 9)

This function returns the index <n> of the item <item>. If <item> is not an element of the list, the return value is -1.

Declaration:
WORD lbox_get_idx( LBOX_ITEM *items, LBOX_ITEM *search );

Call:
n = lbox_get_idx( items, search );

Variable         Argument      Meaning
Inputs:

contrl[0]        174           lbox_get
contrl[1]        1             Entries in intin
contrl[3]        2             Entries in addrin

intin[0]         9             lbox_get_idx

addrin[0]        items         Pointer to the first item of the list
addrin[1]        search        Pointer to the item to be found

Outputs:

contrl[2]        1             Entries in intout
contrl[4]        0             Entries in addrout

intout[0]        n             Index of the item


Home List boxes LIST BOX - GET SELECTED ITEM (AES 174, 8) LIST BOX - GET NUMBER OF VISIBLE ITEMS, SLIDER B (AES 174, 10)