FPHTMLOptionElement Object

Microsoft FrontPage Visual Basic

FPHTMLOptionElement Object

FPHTMLOptionElement Multiple objects

Represenst an OPTION element in an HTML document. See also IHTMLOptionElement object.

Using the FPHTMLOptionElement Object

Use the options property to return an IHTMLElementCollection collection that represents a collection of all the OPTION elements in a SELECT element. Use the Item method to return an FPHTMLOptionElement object that accesses a specific OPTION element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first OPTION element of the first SELECT element in the active document.

    Dim objSelect As FPHTMLSelectElement
Dim objOption As FPHTMLOptionElement

Set objSelect = ActiveDocument.all.tags("select").Item(0)
Set objOption = objSelect.Options(0)