Result
Previous
move the cursor to the previous row
Calling Sequence
Parameters
Description
Examples
result:-Previous( )
result
-
Result module
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.
Create a Result.
driver≔DatabaseLoadDriver⁡:
conn≔driver:-OpenConnection⁡url,name,pass:res≔conn:-ExecuteQuery⁡SELECT name FROM animals:
Move the cursor to the end of the table.
whileres:-Next⁡doenddo:
Now inspect the table backwards.
whileres:-Previous⁡dores:-GetData⁡1enddo:
hamster
pig
parrot
lizard
snake
horse
rat
cat
dog
fish
See Also
Database
Database[Result]
Database[Result][First]
Database[Result][GotoRow]
Database[Result][Last]
Database[Result][Next]
Database[usage]
Download Help Document
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル