Skip to main content

revQueryResult

Type​

function

Summary​

Returns the most recent error message associated with a record set.

Syntax​

revQueryResult(<recordSetID>)

Description​

Use the revQueryResult function to check for successful completion of SQL commands.

If there were no errors associated with the specified record set, the revQueryResult function returns empty. If there was an error, then a database-specific string will be returned describing the error.

Important

The revQueryResult 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.

Parameters​

NameTypeDescription

recordSetID

The number returned by the revQueryDatabase function when the record set was created.

Examples​

revQueryResult(field "Current Set")
if revQueryResult(thisCursor) is not empty then beep 2

Value​

NameTypeDescription

return

The revQueryResult function returns a string.

function: revdb_commit, revDatabaseConnectResult

glossary: Standalone Application Settings, standalone application, record set, return, SQL, LiveCode custom library

keyword: string

library: Database library

command: revCommitDatabase

control structure: function

Compatibility and Support​

Introduced

LiveCode 1.1

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?