Enrico,
Yes, just like CTOD( "" ).
Yes, but it is a workaround for the lack of being able to use nil in DBFs. 0, .f., and "" are all data, not the lack of data, but we use them that way because we have no choice. 0 and .f. are real data but since "" is an empty string it pretty much indicates no data.
This is from xHarbour hbwinole.c:
- Code: Select all Expand view
case HB_IT_DATE:
if( pItem->item.asDate.value == 0 )
{
PHB_V_VT( pVariant ) = VT_NULL;
}
Excellent, this is the evidence we need.
I searched Github for hbwinole.c and it doesn't seem to exist so I couldn't check it. There is however a hbwinole.h so I guess the C file is named something else.
As you have been saying, the only solution seems to be to convince the Harbour developers to fix this issue.