CTTable::Detach Detaches a c-treeDB table object from a c-tree data and index files. Declaration void CTTable::Detach(); Description CTTable::Detach() detaches a c-treeDB table object from a c-tree data and index files. The table is not closed but the c-treeDB table handle resources are released and the handle re-initialized. Return void Example
CTTable hTable(hSession); CTRecord hRecord(hTable); NINT datno, count = 0;
hSession.Logon(SERVER, USER, PASSWD);
datno = (NINT)OPNRFILX((COUNT) -1, "test309.dat", (COUNT)0, NULL);)
hTable.Attach(datno);
if (hRecord.First()) do {
count++; } while (hRecord.Next());
hTable.Detach(); hSession.Logout(); See Also CTTable::Attach(), CTTable::AttachXtd() |
|||