ListBox

ListBoxGetData

Return the data string associated with a list item

Syntax

Signature
const char  *ListBoxGetData( const ListBox *listBox, int position );

Arguments

listBox the list box.

position the one-based position of an existing item.

Return value

The stored data string, or NULL if the item has no data, position is outside the item list or the object is NULL.

Description

The list owns the returned string. Its lifetime ends when the data is replaced, the item is removed or the list is freed.

See also