<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_Close |
Declare Sub sx_Close Lib "Apollo9.dll" ()
VOID FAR PASCAL sx_Close (VOID);
Close the current database (including all associated index files) and release allocated memory. Hot record buffers are flushed to disk before closing.
'create new indexes
CustArea = sx_Use("\vb\test.dbf", "cust", READWRITE, SDENTX)
n1 = sx_Index("\vb\t1.ntx", "customer", 0, 0, 0&)
n1 = sx_Index("\vb\t2.ntx", "upper(last)+upper(first)", 0, 0, 0&)
n3 = sx_Index("\vb\t3.ntx", "upper(company)", 0, 0, 0&)
sx_Close
// destructor
CNamesForm::~CNamesForm()
{
// on form destruct, close file
sx_Close();
}