revDatabaseCursors

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revDatabaseCursors(<databaseID>)
Synonymsrevdb_cursors
Associationsdatabase library
Summary

Returns the record set IDs associated with a connection to a database.

Introduced1.1
Changes

The revDatabaseCursors synonym was added in version 2.0.

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

The number returned by the revOpenDatabase function when the database was opened.

Example
revDatabaseCursors(weeklyReportsDB)
put the number of items of revDatabaseCursors(2) into numberOfSets
repeat for each item thisResultSet in revDatabaseCursors(myDB)
Values
NameTypeDescription
return

The revDatabaseCursors function returns a list of record set IDs separated by commas.

RelatedControl Structure: function
Command: revCloseCursor
Glossary: Standalone Application Settings, database, standalone application, record set, return, LiveCode custom library
Library: Database library
Securitydisk, network
Description

Use the revDatabaseCursors function to perform an operation on each record set, or to find out how many record sets exist on a particular database connection.

The record set IDs returned are those opened by the specified databaseID.

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