dbCan... example for C++ Builder

This example displays property values in a message box. You can implement this example by adding a button, with this code, to the project described in ODBC Example for C++ Builder.

//   LEADRasterODBC * pRastODBC=NULL;
//   CoCreateInstance(CLSID_LEADRasterODBC, NULL, CLSCTX_ALL, IID_ILEADRasterODBC, (void**)& pRastODBC);
   AnsiString TempStr, InfoStr;

   InfoStr= "dbCanAppend = "+ IntToStr((int)pRastODBC->dbCanAppend) + "\n";
   TempStr= "dbCanRestart= "+ IntToStr((int)pRastODBC->dbCanRestart) + "\n";
   InfoStr += TempStr;
   TempStr = "dbCanScroll= "+ IntToStr((int)pRastODBC->dbCanScroll)+ "\n";
   InfoStr += TempStr;
   TempStr = "dbCanUpdate= "+ IntToStr((int)pRastODBC->dbCanUpdate) + "\n" ;
   InfoStr += TempStr;
   TempStr= "dbEditMode = "+ IntToStr(pRastODBC->dbEditMode) + "\n";
   InfoStr += TempStr;
   TempStr= "dbIsBOF = "+ IntToStr((int)pRastODBC->dbIsBOF)+ "\n";
   InfoStr += TempStr;
   TempStr= "dbIsEOF = "+ IntToStr((int)pRastODBC->dbIsEOF)+ "\n";
   InfoStr += TempStr;
   TempStr= "dbIsDeleted = "+ IntToStr((int)pRastODBC->dbIsDeleted)+ "\n";
   InfoStr += TempStr;
   TempStr= "dbIsOpen = "+ IntToStr((int)pRastODBC->dbIsOpen) +"\n";
   InfoStr += TempStr;
   TempStr= "dbLoadBits = "+ IntToStr(pRastODBC->dbLoadBits) + "\n";
   InfoStr += TempStr;
   TempStr= "dbLockingMode = "+ IntToStr(pRastODBC->dbLockingMode) + "\n";
   InfoStr += TempStr;
   TempStr= "dbRecordCount = "+ IntToStr((int)pRastODBC->dbRecordCount) + "\n";
   InfoStr += TempStr;
   TempStr= "dbCurrentRecord = (0 based)"+ IntToStr((int)pRastODBC->dbCurrentRecord)+"\n";
   InfoStr += TempStr;
   ShowMessage(InfoStr);
//   pRastODBC->Release();