I am getting a runtime error while comparing two DateTime variables ( valtype 'T' ). Same code is running fine with Harbour.
Example code:
- Code: Select all Expand view
function test()
local t1, t2
t1 := DateTime()
t2 := t1 - 30
// ok till now
? t1 > t2 // should print .T. and Harbour works well
return nil
With xHarbour, I get runtime error and this is the error.log
- Code: Select all Expand view
- Application
===========
Path and name: C:\TESTS\FWH905\Bin\x3.Exe (32 bits)
Size: 2,232,320 bytes
Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 9421)
FiveWin Version: FWHX 12.06
Windows version: 6.1, Build 7601 Service Pack 1
Time from start: 0 hours 0 mins 1 secs
Error occurred at: 29-07-2012, 12:28:57
Error description: Error BASE/1075 Argument error: >
Args:
[ 1] = T 29-07-2012 12:28:57
[ 2] = T 29-06-2012 12:28:57
Is anyone using a later version of xharbour where this problem is solved?