Subject | OnvalidateField how to use? |
---|---|
Author | toninhonunes |
Post date | 2003-08-15T21:28:27Z |
Hi,
Why the field was empty when I typed a value after that the event
OnValidateField is called? see my source code:
procedure TDM_SINDICAL.IB_Qry_AssoConsValidateField(Sender:
TIB_Statement;
ARow: TIB_Row; AField: TIB_Column);
begin
if AField.FieldName = 'MATRICULA' then
if AField.AsInteger = > 100 then
begin
ShowMessage('Invalid Code');
Abort;
end;
end;
It's possible restore the value typed for the field?
Thanks
Toninho Nunes
Why the field was empty when I typed a value after that the event
OnValidateField is called? see my source code:
procedure TDM_SINDICAL.IB_Qry_AssoConsValidateField(Sender:
TIB_Statement;
ARow: TIB_Row; AField: TIB_Column);
begin
if AField.FieldName = 'MATRICULA' then
if AField.AsInteger = > 100 then
begin
ShowMessage('Invalid Code');
Abort;
end;
end;
It's possible restore the value typed for the field?
Thanks
Toninho Nunes