TimStone wrote:When running your test function, it returns .t.
Tim
This is a bug. It should return .f. .
HB_IsDateTime( DateTime() ) should return .t.
and
HB_IsDateTime( Date() ) should return .f..
This was fixed in subsequent versions of xHarbour and XBrowse 10.3 works same way as earlier with recent versions of xHarbour.
If you include valblank.prg of version 10.2 or earlier from \fwh\source\function\valblank.prg, you should get the earlier behavior.
Probably it may be
desirable for FWH to continue the earlier work around for the above bug in xHarbour, because some programmers could still be using older versions of xHarbour commerical.
Also, as I said earlier, if the columns are defined with COLUMNS clause of XBROWSE command, the XBrowse examines the DBF structure and knows that the field is Date and not DateTime. When we use ADD COLUMN syntax, we are denying XBrowse the opportunity to ascertain the real data type of the column.