Brian Dunning's FileMaker Custom Functions

ExtractTableCell ( HTML ; cellNumber )

Returns the contents of the specified cell in HTML table.

  Average rating: 3.9 (48 votes) Log in to vote

Michael Horak   Michael Horak
*COMMENT Visual Realisation
http://comment.cjb.net/

Share on Facebook Share on Twitter

  Sample input:
ExtractTableCell (
"<html>
<body>
<table>
<tr>
<td>Cell A</td>
<td>Cell B</td>
</tr>
</body>
</html>"
;
2 )
  Sample output:
Cell B

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Returns the contents of the specified cell in HTML table. Cells are counted from the beginning of the HTML code, ignoring table and row declarations.

For example, if the HTML code contains two tables of 2 rows by 3 columns each, cellNumber 8 refers to the cell in the first row, second column of the second table.

This function is not recursive.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.