You are not logged in.
Pages: 1
try modernize code ClientRest.ExecuteList([], s) with FormatUTF8 (executelist need - have several commands inner join)
old part code (work fine):
Result := Result + 'strftime("%Y", InputDate) = ' + cbbCurrentYear.Value.QuotedString
if change old part to new part code not work:
Result := Result + FormatUTF8('strftime("%Y", InputDate) = ?', [], [cbbCurrentYear.Value]);
if result i see: ' strftime("Y", InputDate) = ?'. any idea how format sql with expression?
Offline
change to
Result := Result + FormatUTF8('strftime("%%Y", InputDate) = ?', [], [cbbCurrentYear.Value]);
and not work, in result: ' strftime("%Y", InputDate) = ?'
FormatUTF8 dont parse string with %% and dont change ? to
:(''2015''):
if i remove % all parse ok, but strftime not work, i think it but in FormatUTF8
Last edited by noobies (2015-06-04 07:14:16)
Offline
ab, big thanks it work!
Offline
Pages: 1