The htmltablewidth( function calculates the width (number of columns) in an HTML table.
Parameters
This function has one parameter:htmltable – the text containing the HTML table.
Description
This function calculates the width (number of columns) in an HTML table. It assumes that the table is a regular matrix (no colspan tags) and that all of the rows have the same number of columns as the top row in the table.
htmltablewidth("<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>") ☞ 3
Use the htmltableheight( function to calculate the number of rows in a table.
Note: This function is equivalent to:
tagcount(tagdata(thetable,"<tr","</tr>",1),"<td","</td>")
See Also
History
Version | Status | Notes |
10.0 | No Change | Carried over from Panorama 6.0. |