Topic: Save button

Hi friends,
         How are you all? Today I am asking about how to create save button to save records of various tables using script?

Re: Save button

unforgettable wrote:

Hi friends,
         How are you all? Today I am asking about how to create save button to save records of various tables using script?


procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
  SQLExecute('INSERT INTO a(qq)VALUES("'+Form1.Edit1.Text+'")');
  SQLExecute('INSERT INTO b(ww,id_a)VALUES("'+Form1.Edit2.Text+'","'+IntToStr(Last_Insert_id)+'")');

  UPDATEDATABASE('a');
  UPDATEDATABASE('b');
end;
Post's attachments

Attachment icon test.rar 3.08 kb, 213 downloads since 2022-01-06 

Re: Save button

Thank you sibprogsistem