Topic: TextBox Validations
Hello ppl, i'm new with the program, and i'm very interested to learn a bit more.
I want to make a basic program with some input values in DB, but i want to validate myself the input values of some comboBox.
Example.
A table called client with a name on it and its not nullable.
then i try to save the record without any values it goes a default message: "NOT NULL: constraint failed..."
with this code i can see if there is any text on the combobox:
procedure frmNewClient_Button2_OnClick (Sender: string; var Cancel: boolean);
begin
if frmNewClient.boxNome.Text = '' then ShowMessage('wrong name');
end;
the problem is, i get my message and the default message.
There is an way to dont show the default message?