Hi,
I'm new to Spring4D and I'm trying code shown
// minimal viable reproducable test case....
var
NDate: Nullable<TDateTime>;
aDate, aTime: TDateTime;
begin
try
aDate := EncodeDate(2020,06,02);
aTime := EncodeTime(11, 5, 0, 0);
NDate := aDate;
NDate := NDate.Value + aTime; // compiler warning
The compiler (10.3) is giving me:
[dcc32 Warning] Project31.dpr(19): W1000 Symbol '&op_Implicit' is deprecated: 'Possible unsafe operation involving implicit Variant conversion - use explicit cast'
My company is tough on compiler warnings so I'd like to know a) if I'm doing that correctly and b) if so, should I remove that compiler warning?
Thanks in advance.
PS The original code is getting dates/times from a TDataset so I need to conditionally add the time value if the field is not null.