How to get TField.oldvalue ONvalidate event???

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
halenpolen
Posts: 31
Joined: Sun 27 Jun 2010 20:50

How to get TField.oldvalue ONvalidate event???

Post by halenpolen » Sun 27 Jun 2010 20:52

Hi, I Have a problem ,How to get TField.oldvalue ONvalidate event???
this my code:
uniquery1no.onvalidate:=uniquery1noValidate;
procedure TForm1.uniquery1noValidate(Sender: TField);
begin
sender.oldvalue;//this is the problem,sender.oldvalue=sender.newvalue
sender.newvalue;
end;

Thx for ur help

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Wed 30 Jun 2010 13:58

Hello

You should read attentively the section of the Delphi help about the OldValue property of the TField component:
Note: the OldValue property is only usable when data is accessed using the TClientDataSet component or cached updates is enabled.

Post Reply