Page 14 of 16

Re: Migrating to Harbour

PostPosted: Thu Jan 08, 2015 9:32 pm
by Enrico Maria Giordano
Elvira,

elvira wrote:Hello,

So I beleive that the better solution will be to post those comments in the Harbour Developer forum.

Thanks.


Right. Antonio? :-)

EMG

Re: Migrating to Harbour

PostPosted: Thu Jan 08, 2015 9:59 pm
by elvira
Hello,

Here is the list:
https://groups.google.com/forum/#!forum/harbour-devel

I guess the more messages more atention will bring on the topic and bug.

Re: Migrating to Harbour

PostPosted: Thu Jan 08, 2015 11:17 pm
by Antonio Linares
Enrico,

I appreciate if you post the msg yourself.

I already did it, so another one reporting it will benefit all of us :-)

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 10:36 am
by Enrico Maria Giordano
Antonio,

Antonio Linares wrote:Enrico,

I appreciate if you post the msg yourself.

I already did it, so another one reporting it will benefit all of us :-)


I prefer to not have to do with Harbour developers, sorry.

EMG

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 11:01 am
by Antonio Linares
:-D :-D :-D

I can read your mind ;-)

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 11:28 am
by Enrico Maria Giordano
Antonio,

Antonio Linares wrote: :-D :-D :-D

I can read your mind ;-)


:D :D :D

EMG

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 4:03 pm
by James Bott
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.

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 4:21 pm
by Antonio Linares

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 4:31 pm
by Enrico Maria Giordano
Thank you, Antonio!

EMG

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 5:10 pm
by James Bott
I also posted to Antonio's message (link shown in above message). I included Enrico's example code and the error generated.

Hope this helps.

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 5:23 pm
by Antonio Linares
Przemek already answered and it seems as it may be included in next Harbour build.

Anyhow I asked him to confirm it :-)

James, many thanks!

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 5:50 pm
by James Bott
Przemek said:

In short words it converts Harbour empty dates to NIL so when
we add it then it will be impossible to exchange empty dates
between two Harbour applications using OLE as connection
interface.


It sounds to me like he is saying no because it will break app-to-app data exchange using OLE. Perhaps we can suggest a flag as a workaround. Something like lUseNilDates.

Note: Apparently my post to the Harbour Developer's forum is not showing up because it has to be "approved" first. I guess I am on a "watch list."

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 6:08 pm
by Enrico Maria Giordano
As usual. Great attention to theory and no care for practical problems. This is one of the reasons why I dropped Harbour... :-(

EMG

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 6:25 pm
by Antonio Linares
James,

I just saw your msg in the list, its already there.

You may have avoid the use of #include "FiveWin.ch" as it is not needed at all for this example and they may not accept it as a reproduceable example :-)

Maybe you could reply to yourself in the list explaining that no FWH is required to test it :-)

Re: Migrating to Harbour

PostPosted: Fri Jan 09, 2015 6:26 pm
by Antonio Linares
James,

Anyhow, Przemek knows that FWH is not related to this issue :-)