We should be careful (1) when comparing DateTime ( valtype T ) with Date ( valtyle D ) and also (2) know for sure that the value returned by fields(..):value is of type T or D. Unfortunately xHarbour and Harbour do not behave exactly the same way.
Try this test
[code=fw:2oq7fz1y][/code:2oq7fz1y]
Harbour returns .f., .f., .f.
xHarbour returns .f., .f., .t.
My advice:
Convert both to DateTime types and compare:
We have two function FW_DTOT() and FW_TTOD()
example:
HB_DATETIME() > FW_DTOT( oRs:Fields( "date" ):Value )
If we are interested in the date part only then compare
FW_TTOD( ) > FW_TTOD( .... )
↧