show_option2(caption,prompt,items)

Shows a dialog box to the user,containing a list of items.User can select one of them.The only difference between this and show_option1 is that this function show list of item in a combo box box while show_option1 show the list in a list box.caption is the text to show in the titlebar of the dialog.prompt is the prompt to the user.items is a string containing a list of items to show separated by "|".Ex "Red|Green|Blue" It returs the index of the item selected Ex 0 for Red, 1 for Green, 2 for blue.If the user presses cancel it returns -1

Example

ch=show_option2("My Game","Select a color.","Red|Green|Blue");

Screen Shot Of Dialog Box