07-02-2020, 02:08 PM
(07-02-2020, 01:59 PM)Mikael Nilsson Wrote: if I changed it to this
UserSession.FDQryUsersMod.FieldByName('Uppldat').AsDateTime := FormatDateTime('c',now);
I get a compiler error
[dcc32 Error] UserDetail.pas(470): E2010 Incompatible types: 'TDateTime' and 'string'
Yes, because FormatDateTime('c',now) generates a string. try to just set it to := now;