revCurrentRecordIsLast

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

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

Introduced1.1
Changes

The revCurrentRecordIsLast 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
revCurrentRecordIsLast(3)
if revCurrentRecordIsLast(testMySQL) then exit repeat
Values
NameTypeDescription
return

The revCurrentRecordIsLast function returns true if there are no more 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, revdb_movenext
Library: Database library
Control Structure: function
Securitydisk, network
Description

Use the revCurrentRecordIsLast function to stop when you reach the end of the records.

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

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