Extensions Reference
Extensions Reference > exDialogs
dlgListPromptAddItem
void dlgListPromptAddItem(string Item);
Adds an item to the list prompt dialog
The DLGLISTPROMPTADDITEM function adds a text string to the list prompt dialog display. Each string is assigned an index when it is added, therefore the first item to be added will be index 0, the second will be index 1 and the 100th will be index 99. However when the list prompt is displayed the strings are sorted alphabetically.
Parameters
Item
The text to add as an item
Return Value
None
Example Code
// Get ready to display the list prompt dialog
dlgListPromptReset();
// Add 2 items to the list prompt
dlgListPromptAddItem("list item 1");
dlgListPromptAddItem("list item 2");