|
<< Click to Display Table of Contents >> C Examples: DbiOpenTable |
![]() ![]()
|
Open the specified table.
If the table is local (Paradox, FoxPro, Access, or dBASE), the table name must also have the extension. This function uses the following input:
fDbiOpenTable(hDb, "CUSTOMER.DB", &hCur, &CurProps);
DBIResult fDbiOpenTable(hDBIDb hTmpDb, pCHAR pszTableName, phDBICur phTmpCur, pCURProps pCurProps)
{
DBIResult rslt;
rslt = Chk(DbiOpenTable (hTmpDb, pszTableName, NULL, NULL, NULL, 0, dbiREADWRITE,
dbiOPENSHARED, xltFIELD, TRUE, NULL, phTmpCur));
if (rslt != DBIERR_NONE)
return rslt;
if (pCurProps != NULL)
rslt = Chk(DbiGetCursorProps(*phTmpCur, pCurProps));
return rslt;
}