Tag Type C++ code (built in to libHForm/scan_body.cc)
Attributes var=varName Required. (Except when "set" is used. See below.) Sets the variable name whose value we want show the description for. Without any other options, the possible choices for a value are assumed to be found in (private or public) variables named varName[value1]="text to display for value1", varName[value2]="text to display for value2", etc.
choices=listName Optional. Changes the possible value list for var to be off the pattern listName[value1]="text to display for value1", listName[value2]="text to display for value2", etc.
prefix=string and
The default values for these are prefix="%choices;[" and postfix="]". %choices; will be replaced by var (or choices, if choices is given). If you change these, they will remain set for all subsequent Option tags.
setWhen present, allows you to set up prefix and postfix without actually creating any output.
Contained Tags None.
Related Tags The Menu tag does the same thing as the Option tag except it lets the user change the value. Option is used exactly like Menu except it is meant for status forms rather than control forms. This tag must appear in the Body section.
Examples See the examples for Menu.