Method Html3():selectOption() Professional

Create HTML code for an option.

:selectOption( <cCaption>      , ;
               [<cValue>]      , ;
               [<lSelected>] ) --> NIL
The character string <cCaption> is displayed in the combobox.
The optional parameter <cValue> becomes the value of the attribute value in the <option> tag.
If the parameter <lSelected> is .T. (true) the item is initially selected.

The return value of the method :selectOption() is always NIL.


The method defines an item of a selection. The parameter <cCaption>is displayed in the combobox. An optional value <cValue> can be defined to be used instead of <cCaption> in the name/value pair when the form is submitted.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.