Erel, Bjorn,
The brain is now in gear ... and it is to do with the way that the result from DateParse() is cast by the machine.
I now get the exponential form of response if I use int(dateparse("13/04/2008")) both as an executable and under B4PPC.
Therefore I can now force my application to always use exponential tick values (floating point integers - what's that all about then?).
So, the fix to the problem is
1) Use int() to force the result to be cast as E+nn format
2) Use Erel's original suggestion of dropping apostrophes from SQLlite SELECT statement to make sure value is always treated as numeric. (I suspect it was performing a string comparison before).
One for the knowledgebase I think.
Thanks.
Dave Lancaster
|