The
List.show function displays the values from a
List and returns the index of the operator's selection. An optional string expression,
heading, specifies the title of the window that displays the values. The function is similar to the
accept function but with the options taken from the List's values.
The function returns the index of the item selected: 1 for the first value, 2 for the second value, etc. The value 0 is returned if the escape key (or back button) is pressed and none of the values is chosen.