FPHTMLTableRow Object

Microsoft FrontPage Visual Basic

FPHTMLTableRow Object

FPHTMLTableRow Multiple objects

Represents a TR element in an HTML document. See also the IHTMLTableRow object.

Using the FPHTMLTableRow object

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

    Dim objTable As FPHTMLTable
Dim objRow As FPHTMLTableRow

Set objTable = ActiveDocument.all.tags("table").Item(0)
Set objRow = objTable.rows(0)
  

Use the rowIndex property of the FPHTMLTableRow object to retrieve a reference to a specific row. Use the insertRow and deleteRow methods to add or remove rows to or from a table.