[Harbour] itemGetNL & dates
Przemyslaw Czerpak
druzus at acn.waw.pl
Mon Dec 1 13:27:00 EST 2008
On Mon, 01 Dec 2008, Mindaugas Kavaliauskas wrote:
Hi Mindaugas,
> hb_itemGetNL() is implemented to return Julian date value instead of 0.
> Why? (IMHO, date is not numeric and hb_itemGetDL() should be used)
I do not know. Probably for some historical reasons. In Clipper the
result of _itemGetNL( pDateItm ) is undefined and tests confirm it.
But _parnl( iParam ) seems to return Julian date when iParam is date
item. Probably some of conversions we have in hb_itemGet*() functions
are used to emulate unprotected access to ITEM internals in Clipper
in _itemGet*() functions. But I cannot say which ones and which were
added by Harbour developers as some type of Harbour extensions.
best regards,
Przemek
More information about the Harbour
mailing list