wäre es nicht so noch besser?
Delphi-Quellcode:
procedure TDMED.FDQVorgangAssignmentNewRecord(DataSet: TDataSet);
begin
DataSet.FieldByName('idBelKopf').AsString := DMED.FDQAssignment.FieldByName('idBelKopf').AsString;
DataSet.FieldByName('ixUserVon').AsString := FPreferences.CurrentUser.UserNameShort;
DataSet.FieldByName('ErfasstAm').AsDateTime := Now();
DataSet.FieldByName('ixSPAdr').AsString := DMED.FDQAssignment.FieldByName('ixSPAdr').AsString;
end;