Subject | Re: [firebird-support] Tracking changes to records / triggers |
---|---|
Author | Anderson Farias |
Post date | 2009-09-25T00:38:15Z |
Hi,
How a FB trigger fits here?
Regards,
Anderson
> Is it possible to write a trigger like....It's me or the above code looks pretty much Delphi code? I don't get it...
>
> Changed := False;
> Counter := 0;
> while (counter < Record.FieldCount) and (Changed = False) do begin
> if (old.Fields[Counter] <> new.Fields[Counter]) then begin
> Changed := True;
> end;
> end;
>
> If (Changed = True) then begin
> //Marke record as changed
> end
How a FB trigger fits here?
Regards,
Anderson