15. August 2016 10:22
if TabelleA.Feld88 <> TabelleB.Feld399 then
begin
if TransferHin then
TabelleA.Feld88 := TabelleB.Feld399
else
TabelleB.Feld399 := TabelleA.Feld88;
end;
TabelleA.Get(KeyValue);
TabelleB.Get(KeyValue);
TabelleC.Get(KeyValue);
Direction := UserSelectedDirectionFromDialog;
DidUpdate := UpdateField(TabelleA.Feld1, TabelleB.Feld3)
DidUpdate := DidUpdate or UpdateField(TabelleA.Feld2, TabelleC.FeldF);
// ... usw.
LOCAL UpdateField(BfrField : FieldRef;AcctField : FieldRef) Updated : Boolean
Updated := BfrField.Value <> AcctField.Value;
if Updated then
begin
if Direction then
AcctField.Value := BfrField.Value
else
BfrField.Value := AcctField.Value;
end;
16. September 2016 08:25
16. September 2016 09:13