|
<< Click to Display Table of Contents >> C Examples: DbiOpenFieldTypesList |
![]() ![]()
|
Get the field types for the specified driver.
The Types variable must have sufficient space allocated for function to use. This example uses the following input:
fDbiOpenFieldTypesList(szDBASE, Buffer);
DBIResult fDbiOpenFieldTypesList(pCHAR Driver, pCHAR Types)
{
DBIResult rslt;
hDBICur hTmpCur = 0;
FLDType FldType;
Types[0] = '\0';
rslt = Chk(DbiOpenFieldTypesList(Driver, NULL, &hTmpCur));
while (DbiGetNextRecord(hTmpCur, dbiNOLOCK, (pBYTE)&FldType, NULL) == DBIERR_NONE)
{
strcat(Types, FldType.szName);
strcat(Types, " ");
}
if (hTmpCur != 0)
DbiCloseCursor(&hTmpCur);
return rslt;
}