GetRowIndex - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Result

  

GetRowIndex

  

get the row index of the current row

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

result:-GetRowIndex( )

Parameters

result

-

Result module

Description

• 

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.

Examples

Create a Result.

driverDatabaseLoadDriver:

conndriver:-OpenConnectionurl,name,pass:resconn:-ExecuteQuerySELECT name FROM animals:res:-GetRowIndex

0

(1)

whileres:-Nextdores:-GetRowIndexenddo

1

2

3

4

5

6

7

8

9

10

(2)

res:-GetRowIndex

0

(3)

See Also

Database

Database[Result]

Database[Result][First]

Database[Result][GotoRow]

Database[Result][Last]

Database[Result][Next]

Database[Result][Previous]

Database[usage]