Close
Close window
Previous - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Result

Previous

move the cursor to the previous row

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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /