int SdbSeekDirs ( char *pszKey ) { int iTableRecNo = 0; if ( DbiSetToKey ( hTable, keySEARCHEQ, TRUE, 0, 0, pszKey ) == DBIERR_NONE ) { RECProps bdeRecordProps; DbiGetNextRecord ( hTable, dbiNOLOCK, pszRecBufTable, &bdeRecordProps ); iTableRecNo = ( int ) bdeRecordProps . iPhyRecNum; } return iTableRecNo; // 0 = not found }