revCloseCursor

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revCloseCursor <recordSetID>
Associationsdatabase library
Summary

Closes a redcord set|record set (database cursor).

Introduced2.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
revCloseCursor 3
revCloseCursor finalResults
Values
NameTypeDescription
The result

If the closure is not successful, the result is set to an error message.

RelatedCommand: revCloseDatabase
Function: revDatabaseCursors, revdb_disconnect, revQueryDatabase, revDataFromQuery, revdb_closecursor
Glossary: Standalone Application Settings, database, standalone application, record set, command, LiveCode custom library
Library: Database library
Securitydisk, network
Description

Use the revCloseCursor command to clean up after using a record set in a database.

All open record sets are closed automatically when the database they are associated with is closed. However, it is recommended practice to explicitly close record sets when your stack is finished with them.

Important: The revCloseCursor command is part of the Database library. To ensure that the command 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