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 - Show more from this author
*COMMENT Visual Realisation

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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: