Error getting tags :
error 404Error getting tags :
error 404 revDatabaseID | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
revDatabaseID
Basics
Expander triangle
Type
Function
Syntax

revDatabaseID(recordSetID)

Introduced
1.1
Changed
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Disk,Network
Summary
Returns the database ID of the database that opened a record set (database cursor).
Examples

revDatabaseID(weeklyOccupancy)
if revDatabaseID(currentCursor) is not field "DB ID" then
next repeat
end if

Additional Comments
Expander triangle

Use the revDatabaseID function to find out which database a record set belongs to.

Parameters:

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

Value:

The revDatabaseID function returns a positive integer.

Comments:

The returned value is the same as the value returned by the revOpenDatabase function when the database was first opened.

You can use the returned value to close a database after your stack is finished with it.

Important! The revDatabaseIDfunction 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 section of the General screen of the Standalone Application Settings window, make sure the "Database Support" checkbox is checked and the database drivers you are using are selected in the list of database drivers.

Changes to Revolution:

The revDatabaseID synonym was added in version 2.0.

User Comments
Expander triangle