GetRetainCursor

Returns the RetainCursor status. D7+ Only.
function GetRetainCursor(Connection: TSQLConnection): Boolean;

Parameters:

Connection
The TSQLConnection component that is connected to the server.

Return Value:

True or False, according to what is defined in the internal RetainCursor.

Exceptions:

EDatabaseError is raised in case of an error.

Quick Info:

Supported Compilers:D7+
Category:Database Information
Unit: PGEDriverUtils.pas

Example 4.5. 

ShowMessage('The RetainCursor status of this connection is ' + BoolToStr(GetRetainCursor(SQLConnection1)));