Product Documentation

VCL/CLX Developers Guide

Previous Topic

Next Topic

Done

When an application and/or process has completed operations with the database, it must release resources by closing the open files and disconnecting from the database engine.

Below is the code for Done():

//---------------------------------------------------------------------------

void TForm1::Done()

{

// close table

TabCustMast->Active = false;

// disconnect from database

CtDatabase1->Active = false;

// logout from session

CtSession1->Active = false;

}

TOCIndex