revDatabaseConnectResult

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revDatabaseConnectResult(<databaseID>)
Synonymsrevdb_connectionerr
Associationsdatabase library
Summary

Returns the most recent error message for a database.

Introduced1.1
Changes

The revDatabaseConnectResult 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
revDatabaseConnectResult(line x of revOpenDatabases())
if revDatabaseConnectResult(myReservations) is empty then exit repeat
Values
NameTypeDescription
return

The revDatabaseConnectResult function returns a string.

RelatedKeyword: string
Glossary: Standalone Application Settings, database, standalone application, return, LiveCode custom library
Command: revCloseDatabase
Function: revQueryResult, revOpenDatabase, revOpenDatabases
Library: Database library
Control Structure: function
Securitydisk, network
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 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