Roulette Xtreme 2.0 - System Designer
Input Dropdown
Identifier Index > I > Input Dropdown

Glossary Item Box

Input Dropdown

Format:  Input Dropdown  "text-string-format" dest-support-action

where

Description

The Input Dropdown identifier opens a dialog box, displays the text-string-format information and a list of choices to select in a drop-down edit field.  The format of the text-string-format contains two parts:

  • Information: This text information will be displayed in the caption section of the dialog box.  This is to provide information to the User as to what type of options are available in the drop-down edit field.

  • Drop-down edit field: The edit field contains a list of options to which the User can make a selection.  The information contained in the drop-down list is built from the text-string-format.

Text-string Format

To build a drop-down list, special format characters are contained within the body of the text information.  

The format is: integer := short-string

where

  • integer = a whole number that will be assigned to the value of dest-support-action

  • special characters: the characters,:= is required to let the compiler know where the integer and short-string is located.

  • short-string: a small text information that is be displayed in the drop-down list.

Format Example

"Any text information here to be displayed in the caption

1:= first drop-down item

2:= second drop-down item"

Notice from the above example, the text information that will be displayed in the caption section of the dialog box is listed first.  The drop-down list format is on a new line and starts with the integer followed by the special characters, :=, then the short-string.  When a User selects an item from the drop-down list, the integer will be assigned to the value of dest-support-action identifier.  

Example

We are providing a drop-down dialog box to allow the User to select what type of roulette table to use for the session.  The drop-down list will contain two selections, American Wheel and European Wheel.  After the User selects which item in the drop-down list and clicks the Ok button, the value located at the drop-down edit field will be assigned to the record table layout.  The following example will perform this task.  

RX Script Copy Code
Input Dropdown "What Table layout do you want to use?


         1:= American Layout
         2:= European Layout"
                   
                to record "table layout" data

Results from example

Copyright © 2003 UX Software. All rights reserved