revDatabaseConnectResult

returns the most recent error message for a database.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.1 Security: disk, network

# Syntax

revDatabaseConnectResult(databaseID)

# Params

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

# Examples

revDatabaseConnectResult(line x of revOpenDatabases())

if revDatabaseConnectResult(myReservations) is empty then exit repeat

# Description

Use the revDatabaseConnectResult function to check for successful completion of commands.

If there were no errors on the specified database connection, the revDatabaseConnectResult function returns empty. Otherwise the revDatabaseConnectResult function returns the database specific error message for the most recent database operation that failed.

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