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

Online Help

All Products    Maple    MapleSim


Result

  

Previous

  

move the cursor to the previous row

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

result:-Previous( )

Parameters

result

-

Result module

Description

• 

Previous moves the row cursor maintained within result to the previous row in the table.

• 

If the new Row is a valid row containing table data, Previous returns true.  If the new row is before the first row of the table, Previous returns false.

• 

The row cursor can be moved forward using the Next command.

Examples

Create a Result.

driverDatabaseLoadDriver:

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

Move the cursor to the end of the table.

whileres:-Nextdoenddo:

Now inspect the table backwards.

whileres:-Previousdores:-GetData1enddo:

hamster

pig

parrot

lizard

snake

horse

rat

cat

dog

fish

(1)

See Also

Database

Database[Result]

Database[Result][First]

Database[Result][GotoRow]

Database[Result][Last]

Database[Result][Next]

Database[usage]