Topic: Clearing text fields

Hi everyone, today I would like to know how I can clear the TextBox (in red) without clearing the "Names" field (in blue) for modifications.

Post's attachments

Attachment icon Exemple.jpg 140.1 kb, 64 downloads since 2022-07-07 

Destiny

Re: Clearing text fields

Hi Destiny


In this project, dropping to the format 00:00
Ajout_clients.Ed11.Text := '00:00';


Standard command to remove all text
Form.Edit.Clear;
But in this project, the Edit field has an input mask defined, and using Clear will result in the input mask "__:__" being displayed.


http://myvisualdatabase.com/help_en/script_edit.html

Re: Clearing text fields

Hi sparrow, I have the code to erase all the texts but I would like the "Names" field to remain displayed but I can't.

Destiny

Re: Clearing text fields

Unfortunately, I don't even know what code you are using.
Even fortune-telling does not help. )


Help as always standard, your project or a test project with your code.

Re: Clearing text fields

Here is an example of my program

Post's attachments

Attachment icon Planning de travail.zip 339.36 kb, 128 downloads since 2022-07-07 

Destiny

Re: Clearing text fields

Button RESET is defined as a new entry,
this causes all fields to be cleared automatically.
In the example, the NAME is remembered before clearing,
after clearing it is entered back into the field.

Post's attachments

Attachment icon Plan3.zip 336.87 kb, 153 downloads since 2022-07-07 

Re: Clearing text fields

Super sparrow, that's what I was looking for. Thank you, he's a chef.
Destiny

Destiny