Программирование в Delphi 7 Part 002

Page 1

Часть IV. Технологии доступа к данн

400

else begin if Not NextBtn.Enabled then NextBtn.Enabled := True; DbiGetField(hCur, 1, RecBuf, SFValue, IsEmpty); MainForm.CountryEdit.Text := FValue; DbiGetField(hCur, 2, RecBuf, @FValue, IsEmpty); MainForm.CapitalEdit.Text := FValue; end; except OnBDEError; end; end; procedure TMainForm.NextBtnClick(Sender: TObject); begin try if DbiGetNextRecord(hCur, dbiNoLock, RecBuf, Nil)=DBIERR_EOF then NextBtn.Enabled := False else begin if Not PriorBtn.Enabled then PriorBtn.Enabled := True; DbiGetField(hCur, 1, RecBuf, @FValue, IsEmpty); MainForm.CountryEdit.Text := FValue; DbiGetField(hCur, 2, RecBuf, SFValue, IsEmpty); MainForm.CapitalEdit.Text := FValue; end; except OnBDEError; end; end; end. I 7§ Пример п р я м о г о использования API BDE

Столица:

Рис. 16.5. Главная форма проекта DirectBDE


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.