Recent

Author Topic: How to writte in dbf table in run time  (Read 1596 times)

Emmanuel

  • New Member
  • *
  • Posts: 24
How to writte in dbf table in run time
« on: September 20, 2014, 08:56:44 am »
I need to update data in dbf table  in run time, I can not found the instruction, somebody can help me ???? %)

 Thank you for your help ::)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538

Irwin

  • Newbie
  • Posts: 3
Re: How to writte in dbf table in run time
« Reply #2 on: September 28, 2014, 04:14:50 am »
Hi,

Try this code and tell me what happens:

with Dbf1 do
 begin
    try
       Open;
       Insert;
           FieldByName('FIELD1').AsString := lcField1;
           FieldByName('FIELD2').AsString := lcField2;
           FieldByName('FIELD3').AsString := lcField3;
       Post;
       Close;
    finally
    end;
 end;

 

TinyPortal © 2005-2018