sx_Close

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_Close

VB Declaration

Declare Sub sx_Close Lib "Apollo9.dll" ()

C Declaration

VOID FAR PASCAL sx_Close (VOID);

Description

Close the current database (including all associated index files) and release allocated memory. Hot record buffers are flushed to disk before closing.

VB Example

'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

C C Example

// destructor

CNamesForm::~CNamesForm()

{

// on form destruct, close file

sx_Close();

}

See Also

sx_CloseAll, sx_CloseIndexes, sx_IndexClose, sx_Use