revCurrentRecordIsFirst

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

Returns whether the current record is the first record in a record set (glossary).

Introduced1.1
Changes

The revCurrentRecordIsFirst synonym was added in version 2.0.

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

The number returned by the revQueryDatabase function when the record set was created.

Example
revCurrentRecordIsFirst(line 2 of field ID 2345)
set the hilite of button "First" to revCurrentRecordIsFirst(it)
Values
NameTypeDescription
return

The revCurrentRecordIsFirst function returns true if there are no previous records, false otherwise.

RelatedKeyword: string
Glossary: LiveCode custom library, record, Standalone Application Settings, standalone application, record set, return
Command: revMoveToNextRecord
Function: revdb_movefirst, revdb_moveprev, revdb_movelast, revQueryIsAtStart, revdb_movenext
Library: Database library
Control Structure: function
Securitydisk, network
Description

Use the revCurrentRecordIsFirst function to stop when you reach the first record.

If the operation is not successful, the revCurrentRecordIsFirst function returns an error message that begins with the string "revdberr".

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