Topic: Small Bug?
Hey guys.
On my script to stop repeated fields from saving, i found that if i try to close the form on "cancel" it will just repeat my warning message tha ti wrote earlier, even if the edit box is empty.
Here's the part of the script that i'm talking about:
if frmclientes.bxcont1cliente.text = '' then
begin
Cancel := True;
ShowMessage('O Campo "Contacto (1)" tem que ser preenchido.');
end;
as soon as i click on the button to close the form , the same message: O Campo "Contacto (1)" tem que ser preenchido appears, and it doesn't close the form, i have to use the "x" button on top of the form.
This is a minor inconveniance, but is this a bug or did i do something wrong?