ListBox

ListBoxSetData

Replace or clear the data string of a list item

Syntax

Signature
xBool        ListBoxSetData( ListBox *listBox, int position, const char *data );

Arguments

listBox the list box.

position the one-based position of an existing item.

data the associated string to copy, or NULL to clear the data.

Return value

T on success, or F if the object is NULL or position is outside the item list.

Description

The list copies the supplied data before releasing its previous copy. The item text is managed by `ListBoxSetText()`.

See also