revQueryResult

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revQueryResult(<recordSetID>)
Synonymsrevdb_cursorerr
Associationsdatabase library
Summary

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

Introduced1.1
Changes

The revQueryResult synonym was added in version 2.0.

OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
recordSetID

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

Example
revQueryResult(field "Current Set")
if revQueryResult(thisCursor) is not empty then beep 2
Values
NameTypeDescription
return

The revQueryResult function returns a string.

RelatedKeyword: string
Glossary: Standalone Application Settings, standalone application, record set, return, SQL, LiveCode custom library
Command: revCommitDatabase
Function: revdb_commit, revDatabaseConnectResult
Library: Database library
Control Structure: function
Securitydisk, network
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.

Tagsdatabase