Topic: Clear all the textboxes from the form

I want to add a new " Clear" button on my Form1(Search form) that clears all the textboxes in this form before the new search.
How to do this?
Thanks in advance.

Re: Clear all the textboxes from the form

Hello Zlaya

You could use this snippet and adapt it to your case :

JB

Post's attachments

Attachment icon Snippet.rar 557 b, 272 downloads since 2020-05-13 

Re: Clear all the textboxes from the form

Form1.Edit1.Clear;
Form1.Edit2.Clear;

Re: Clear all the textboxes from the form

You can try the New Record Action on the Clear Button.

Post's attachments

Attachment icon clearsearch.zip 334.84 kb, 287 downloads since 2020-05-15 

brian

Re: Clear all the textboxes from the form

Hi, sibprogsistem,
Thank you for solution.