Classes

Method Html3():selectOption() Professional

Create HTML code for an option.

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

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

Description

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.

Feedback

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.