Advantage Client Engine
Returns the table type with which the table was opened
UNSIGNED32 |
AdsGetTableType (ADSHANDLE hTable, UNSIGNED16 *pusType); |
hTable (I) |
Handle of table or cursor. |
pusType (O) |
Return type of table (ADS_ADT, ADS_VFP, ADS_NTX or ADS_CDX). |
Tables opened with ADS_ADT can open only ADI indexes. Tables opened with ADS_CDX ands ADS_VFP can only open IDX or CDX FoxPro-compatible indexes. Tables opened with ADS_NTX will only open NTX indexes. Attempting to open a table with a memo file containing the incorrect table type (ADM for ADS_ADT, DBT for ADS_NTX or FPT for ADS_CDX and ADS_VFP) will result in a failed open with the error code AE_CORRUPT_TABLE.