choiceAppendString


function choiceAppendString(choiceID: integer; itemText:string):integer;

Inserts a string into the choice group element identified by choice group ID. The function returns the index of he newly inserted element within the choice group.

  var choiceGroupID: integer;
      NY, LA: integer;
  begin
    showForm;
    choiceGroupID := formAddChoice('Where do you live?', CF_EXCLUSIVE);
    NY := choiceAppendString(choiceGroupID, 'New York');
    LA := choiceAppendString(choiceGroupID, 'Los Angeles');
  end.

See also: formAddChoice, choiceAppendStringImage, choiceIsSelected, choiceGetSelectedIndex