# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.1 Security: disk, network
# Syntax
revOpenDatabases()
# Examples
revOpenDatabases()
repeat for each item thisConnection in revOpenDatabases()
if revOpenDatabases is empty then cleanUp
# 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 return 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 > LiveCode custom library when you create your > standalone application. 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.
# Tags
# See
- **keyword:** 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