move the cursor to the last row - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Database Package : Result : Database/Result/Last

Result:-Last - move the cursor to the last row

Calling Sequence

result:-Last( opts )

Parameters

result

-

Result module

opts

-

(optional) equation of the form after=boolean

Description

• 

Last moves the row cursor maintained within result to the last row of the table.

• 

Last accepts one optional argument.

  

after = boolean

  

If after is true, then the row cursor is moved to the row after the last row containing data, that is, the same location as when a Result module is created.

• 

Last returns true if the new row indicated by the cursor is a row containing data.  When called with after=true, Last always returns false.

Examples

Create a Result.

driver:=Database[LoadDriver]:

conn:=driver:-OpenConnectionurl,name,pass:res:=conn:-ExecuteQuerySELECT name FROM animals:

Call Last.

res:-Last

true

(1)

Last returned true so it is valid to read data from this row.

res:-GetData1

hamster

(2)

res:-Lastafter=true

false

(3)

res:-Previous

true

(4)

res:-GetData1

hamster

(5)

See Also

Database, Database[Result], Database[Result][First], Database[Result][GotoRow], Database[Result][Next], Database[Result][Previous], Database[usage]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam