Closes a cursor and releases all allocated resources.
Ora.bdh
OraClose( inout cCursor: cursor ): boolean;
true if successful
false otherwise. In this case, you can use the OraOciError function to retrieve the Oracle OCI error code
Parameter | Description |
---|---|
cCursor | Cursor associated with a database connection. |
var hConnection : number; cCursor : cursor; dcltrans transaction TMain var bOk : boolean; begin OraLogon(hConnection, "user", "password", "orclnet2"); OraOpen(cCursor, hConnection); ... bOk := OraClose(cCursor); if bOk then write("Cursor successfully closed"); writeln; else write("Could not close cursor"); writeln; end; OraLogoff(hConnection); end TMain;
Cursor successfully closed
OraArrayFetch.bdf, OraSample.bdf, OraLoadPers.bdf