Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not a valid time format?
#10
(07-02-2020, 03:31 PM)SorenJensen Wrote: Also you can use .value in the assign:

UserSession.FDQryUsersMod.FieldByName('UserID').value            := AnsiUppercase(inpUID.Text);
UserSession.FDQryUsersMod.FieldByName('PartID').value              := UserSession.UsersSelectedPartId;
UserSession.FDQryUsersMod.FieldByName('Uppldat').value            := now;

.value is a genetic type which will add the value as it is assigned, as long as the assigned and the assignee types are the same.

Thanks for the tip but my way of coding is working in Delphi 10.3.2 but not in Delphi 10.3.3
Also  text string is showing dates like this 05/01/2020 instead of 2020-05-01
Reply


Messages In This Thread
Not a valid time format? - by Mikael Nilsson - 06-29-2020, 10:44 AM
RE: Not a valid time format? - by Mikael Nilsson - 07-02-2020, 09:24 AM
RE: Not a valid time format? - by Mikael Nilsson - 07-02-2020, 10:11 AM
RE: Not a valid time format? - by SorenJensen - 07-02-2020, 01:43 PM
RE: Not a valid time format? - by Mikael Nilsson - 07-02-2020, 01:59 PM
RE: Not a valid time format? - by SorenJensen - 07-02-2020, 02:08 PM
RE: Not a valid time format? - by SorenJensen - 07-02-2020, 03:31 PM
RE: Not a valid time format? - by Mikael Nilsson - 07-03-2020, 06:57 AM
RE: Not a valid time format? - by Mikael Nilsson - 07-03-2020, 12:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)