RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSession.Close Method

Disconnects from all databases, and closes the session.

Pascal
procedure Close;
C++
__fastcall Close();

Call Close to end a session. Close disconnects from all active databases by freeing temporary database components, and calling the Close methods persistent database components, and then sets its own session handle to nil (Delphi) or NULL (C++).

Note: Setting the Active property to false also closes a session.
 

Active 

Open 

Close 

Dropping Inactive Database Connections

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!