revOpenDatabases

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revOpenDatabases()
Synonymsrevdb_connections
Associationsdatabase library
Summary

Returns a list of open databases.

Introduced1.1
Changes

The revOpenDatabases synonym was added in version 2.0.

OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
revOpenDatabases()
repeat for each item thisConnection in revOpenDatabases()
if revOpenDatabases is empty then cleanUp
Values
NameTypeDescription
return

The revOpenDatabases function returns a list of database IDs separated by commas.

RelatedKeyword: string
Control Structure: function, repeat
Function: revDatabaseConnectResult, revOpenDatabase, revDatabaseType
Library: Database library
Glossary: LiveCode custom library, Standalone Application Settings, database, loop, return, standalone application, command
Securitydisk, network
Description

Use the revOpenDatabases function to find out how many databases are open, or in a repeat loop to access all the open databases in turn.

The database ID returned by the revOpenDatabases function is the same as the number returned by the revOpenDatabase function when the database was opened.

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

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