[DUG] Dbase File Data Update
David Moorhouse
delphi at moorhouse.net.nz
Mon Oct 27 19:05:16 NZDT 2008
Hi Wallace
You need to "post" the record to make the changes permanent.
HTH
D
On Mon, 27 Oct 2008 18:34:56 +1300, you wrote:
>I am trying to increase a value in a dbaseIII file. When I press the Inc button, the referenced dbEdit field increases with each click.
>
>However on exiting the program, the tblData['Jobno'] does not reflect the new value.
>
>
>>From data module.
>
>begin
> tblData.open;
>end;
>------------------------------------
>
>procedure TForm1.bIncClick(Sender: TObject);
>
>var iCurrJobno:integer;
>
>begin
> iCurrJobno:=dm.tblData['Jobno'];
> iCurrJobno:= iCurrJobno+1;
> dm.tblData.edit;
> dm.tblData['Jobno'] := iCurrJobno;
>end;
>
>
>There are probably other ways of doing this, but I would like to know why this does not work.
>
>Thanks Wallace
More information about the Delphi
mailing list