Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>option()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Option()
Returns/writes HTML Option tag <Option ... >
---------------------------------------------------------------------

Syntax:

  Option( <cValue>, <cText>, [<lSelected>] )  --->  cString

Arguments:

  <cValue> is a character string used as a result of making a selection.

  <cText> is a character string to display as the option.

  [<lSelected>] ia a logical value to set a Radio Button as Selected.

Returns: A character string consisting of the generated HTML tag.

Description:

  Generates Option tag used with Select tag to create a listbox on a form.

  The generated string is always returned. The string will be written
  to standard-out depending on the value of StopWrite().
  The default StopWrite() value is FALSE. Setting the StopWrite() value
  to TRUE will suspend the write to standard-out.

Examples:

    SelectBeg( "Choose a state" )
      Option( "TX", "Texas" )
      Option( " CA", "California" )
    SelectEnd()

Alternate:

  htmlWrite( '< option value="01">January' )

Files: Library is ClipX.Lib

Online reference:  Mikodocs Guide To HTML - OPTION tag


See Also: SelectBeg() SelectEnd()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson