G
goddy
Unregistered / Unconfirmed
GUEST, unregistred user!
如何訪問dBASE FilesIII的數據庫,不用BDE
try
{
FMain->tCounter->Close();
FMain->tCounter->DatabaseName="c://wyn";
FMain->tCounter->TableName="No_Count.dbf";
if(!FMain->tCounter->Active)
FMain->tCounter->Active=true;
}
catch(Exception &e)
{
ShowMessage("請設置No_Counter.dbf 的路徑"+e.Message);
return ;
}
ShowMessage("連接成功");
這個顧程序在沒BDE的情況會出錯
try
{
FMain->tCounter->Close();
FMain->tCounter->DatabaseName="c://wyn";
FMain->tCounter->TableName="No_Count.dbf";
if(!FMain->tCounter->Active)
FMain->tCounter->Active=true;
}
catch(Exception &e)
{
ShowMessage("請設置No_Counter.dbf 的路徑"+e.Message);
return ;
}
ShowMessage("連接成功");
這個顧程序在沒BDE的情況會出錯