revdb_moveprev

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revdb_moveprev(<recordSetID>)
Associationsdatabase library
Summary

Executes the revMoveToPreviousRecord command.

Introduced1.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
recordSetID

The number returned by the revQueryDatabase or revQueryDatabaseBLOB function when the record set (database cursor) was created.

Example
revdb_moveprev(testresults)
Values
NameTypeDescription
return

The revdb_moveprev function returns true if it successfully moved to the previous record, false if it could not move to the next record because it's already at the beginning.

RelatedGlossary: LiveCode custom library, Standalone Application Settings, command, standalone application, execute, function call
Command: revMoveToFirstRecord, revMoveToNextRecord, revMoveToPreviousRecord, revMoveToLastRecord
Function: revCurrentRecord, revCurrentRecordIsFirst, revCurrentRecordIsLast
Library: Database library
Control Structure: function
Securitydisk, network
Description

Use the revdb_moveprev function to move around within the selected set of records.

Evaluating the revdb_moveprev function has the same effect as executing the revMoveToPreviousRecord command. The only difference is that one is a function call and the other is a command.

Important: The revdb_moveprev function is part of the Database library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure both the "Database" library checkbox and those of the database drivers you are using are checked.

Tagsdatabase