Result
GetRowIndex
get the row index of the current row
Calling Sequence
Parameters
Description
Examples
result:-GetRowIndex( )
result
-
Result module
GetRowIndex returns the index of the current row. Row indices range from 1 to n, where n is the total number of rows in the table.
If the current row is not a row containing data (the row before the first row, or the row after the last row) GetRowIndex returns 0.
GotoRow can be used to move to a row whose index was returned by GetRowIndex.
Deleting or inserting rows in the table may change the indices of rows. Do not assume that indices received before such an operation will index the same rows after.
Create a Result.
driver≔DatabaseLoadDriver⁡:
conn≔driver:-OpenConnection⁡url,name,pass:res≔conn:-ExecuteQuery⁡SELECT name FROM animals:res:-GetRowIndex⁡
0
whileres:-Next⁡dores:-GetRowIndex⁡enddo
1
2
3
4
5
6
7
8
9
10
res:-GetRowIndex⁡
See Also
Database
Database[Result]
Database[Result][First]
Database[Result][GotoRow]
Database[Result][Last]
Database[Result][Next]
Database[Result][Previous]
Database[usage]
Download Help Document