Topic: Restart the form after click on save
Hi,
I need to restart the form (Clear all fields values) after click on save without closing the form to add new record!
how can i do that ?!
My Visual Database → General → Restart the form after click on save
Hi,
I need to restart the form (Clear all fields values) after click on save without closing the form to add new record!
how can i do that ?!
Hello,
In settings of button "Save Record" you should uncheck option "Close the current for after saving",
then create event OnAfterClick:
procedure frmEmployee_Button2_OnAfterClick (Sender: string);
begin
frmEmployee.edLastName.Clear;
frmEmployee.edFistName.Clear;
frmEmployee.dtDateOfBirth.Checked := False;
Form1.GridEmployees.dbUpdate;
end;
Also you can download example project:
Thank you and how can I Clear ComboBoxes ?!
Form1.ComboBox1.dbItemID := -1;
Thank you
My Visual Database → General → Restart the form after click on save
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi