revdb_movefirst

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

Executes the revMoveToFirstRecord 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 was created.

Example
revdb_movefirst(savedResults)
Values
NameTypeDescription
return

The revdb_movefirst function returns true if it successfully moved to the first record, false if it could not move to the first record because there are no records in the record set.

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

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

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

Important: The revdb_movefirst 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