Because items are renumbered whenever you insert, delete, or sort choice list items, you may need to determine the number or text associated with any of the choice list items. To do this, use cli_numtxt(), which gets the string associated with a item number, and cli_txtnum(), which returns the item number which corresponds to certain text. These functions are as follows:
|
||
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
The buffer string that you pass to collect the item text should be long enough to hold the longest of the choice list items plus a null terminator, or memory will be corrupted.