from_list_of_symbol_values_.htm
Navigation: Templates > Template Language Reference > #PROMPT Entry Types Alpha Listing >====== FROM (list of symbol values) ![]() | ![]() ![]() ![]() |
FROM( symbol [, expression ] [, value ] )
FROM | Specifies a drop-down list of values from the symbol. |
symbol | A multi-valued symbol (built-in or user-defined). |
expression | An expression which controls which symbol values are displayed. Only symbol values where the expression is true are displayed in the drop list. |
value | The symbol containing the content of the first parameter of the multi-valued symbol. |
The FROM type in a #PROMPT statement indicates the user must select one item from the list contained in the symbol. The expression can be used to limit the values displayed, while the value defines the display elements.
Example:
#PROMPT('Select an Event',FROM(%ControlEvent)),%WhichEvent
#PROMPT('Select a Button',FROM(%ControlField,%ControlType = 'BUTTON')),%WhichButton
#PROMPT('Pick a Field',FROM(%Control,%ControlUse <;> '',%ControlUse)),%MyButton
from_list_of_symbol_values_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1