我尝试用下面的程序去实现但失败了<br>procedure TfmFgdisk.setdbaseversion;<br>var<br> hCur : hDBICur;<br> Config : CFGDesc;<br> ContinueIt: boolean;<br>begin<br> if DbiInit(nil) = DBIERR_NONE then<br> begin<br> hCur := nil;<br> if DbiOpenCfgInfoList(nil, dbiREADWRITE, cfgPersistent,<br> '/DRIVERS/DBASE/TABLE CREATE', hCur) = DBIERR_NONE then<br> begin<br> if DbiSetToBegin(hCur) = DBIERR_NONE then<br> begin<br> ContinueIt := true;<br> while ContinueIt do<br> begin<br> if(DbiGetNextRecord(hCur, dbiWRITELOCK, @Config, nil)<br> <> DBIERR_NONE) then<br> ContinueIt := false<br> else<br> if StrIComp(Config.szNodeName, 'LEVEL') = 0 then<br> begin<br> if StrIComp(Config.szValue, '5') <> 0 then<br> begin<br> StrCopy(Config.szValue, '5');<br> DbiModifyRecord(hCur, @Config, true);<br> end;<br> ContinueIt := false<br> end;<br> end;<br> end;<br> end;<br> DbiExit();<br> end;<br>end;