| |||
| Home > RealView Debugger Predefined Macros > Alphabetical predefined macro reference > prompt_list | |||
Displays a dialog containing message text, a list of choices, and Ok, Cancel and Help buttons.
This macro is not available in the headless debugger.
int prompt_list (message, buff)
char *message;
char *buff;
where:
messageThe message text that appears at the top of the dialog.
buffInitially,
the list of choices that appear for selection in the dialog, separated
by \n.
intOne of the following:
0Cancel
nIndex number of the chosen list item. The first item in the list has an index of 1.
This example shows how to use prompt_list on
the command line:
add char buff[15]
strcpy(buff, "one\ntwo\nthree")
ce prompt_list("Choose one:", buff)Result is: 3 0x03
The following macros provide similar or related functionality:
prompt_file on prompt_file
prompt_text on prompt_text
prompt_yesno on prompt_yesno
prompt_yesnocancel on prompt_yesno_cancel.