Inserting an Item in a Choice List

To insert an item in the choice list, call the choice list item insert function, cli_ins():

int cli_ins(stp, item_num, clistp)
 
UCHAR *stp;
/* String to insert
*/
int item_num;
/* Item number to insert string at
*/
CLISTPTR clistp;
/* Choice list to insert string in
*/

If you specify 5 for the item number, the string you are inserting becomes item number 5.

You can specify APPEND_ROW as the item_num to add the item to the end of the choice list. Item numbering starts at 0. The number to access a particular item may change after inserting a row in the choice list.


Home Contents Previous Next