Registriert seit: 12. Aug 2003
Ort: Soest
4.027 Beiträge
Delphi 10.1 Berlin Enterprise
|
Re: Ereignisbehandlung im DBGrid
20. Jul 2004, 13:03
Delphi-Quellcode:
var
Tmp: TNotifyEvent; //oder so
begin
Tmp := OnChange;
OnChange := nil;
if SelectedField = soundso then
table1['sal1'] := table1['salary'] * 1.16
else
table1['sal2'] := table1['salary'] / 1.16;
OnChange := Tmp;
end;
|