This function adds a new field whose value for each row is the row count for that row. The count starts at 0. This function is useful to use just before using rsSort(...) on XML data island ResultSets (inside .hcsp files) so that the original row location can be preserved.

Type and Usage


Takes two parameters:

  • The first parameter is the name of ResultSet to be modified so that it has an new row count column.

  • The second parameter is the name of the field that will hold the row count.


  • Returns TRUE if the function is successful.

  • Returns FALSE if the function fails.


<$rsAddRowCountColumn(rsName, countFieldName)$>