Method SelectOption()


 

Syntax

:SelectOption(cValue, [cLabel], [lDisabled], [lSelected], [lBR], [lWrite])

 

Parameters

 

cValue

Value to be assigned to the Form Variable cName (set up in :SelectStart() )

 

cLabel

Text to display in the List.

 

lDisabled

Determines whether or not the Option is available.

 

lSelected

If True (.T.), the current item in the list is pre-selected.

 

lBR

Logical indicating whether to append a <BR> (Web newline) to Display elements

 

lWrite

Logical indicating whether to send results directly to the User's Browser

 

Return

If :lWrite, Number of characters written to Browser.

Otherwise, the results is the completed <OPTION ... > tag.

 

Description

Creates the <OPTION ...> portion of the <SELECT> tag.

Options are displayed as either a Listbox or Drop-Down list control, depending on the configuration of the :SelectStart() Method.

 

See Also:

:Button(), :Checkbox(), :FormStart(), :GetVar(), :MLE(), :RadioButton(), :SelectStart(), :SelectOption(), :SetVar(), :SLE(), :aVars



Contents