I have the following code to fill the Parameter of a TUniquery:
Code: Select all
if (aFieldType in [ftDate,ftDateTime]) then
begin
Params.items[iParam].DataType := aFieldType;
if (varisnull(Daten[icol, irow]))
or (varisempty(Daten[icol,irow]))
or (length(trim(vartostr(Daten[icol,irow]))) = 0) then
Params.items[iparam].value := NULL
else
Params.items[iparam].Value := formatDateTime('dd.mm.yyyy hh:nn:ss',strtodatetime(Daten[icol,irow]));
but if i let me show Params.items[iparam].text in the Debugger i receive '31.12.1899' .
My simple question, is why are text and value different?