Migrating to Harbour

User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Migrating to Harbour

Post 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
elvira
Posts: 462
Joined: Fri Jun 29, 2012 12:49 pm

Re: Migrating to Harbour

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Migrating to Harbour

Post 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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Migrating to Harbour

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Migrating to Harbour

Post by Antonio Linares »

:-D :-D :-D

I can read your mind ;-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Migrating to Harbour

Post 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

     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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Migrating to Harbour

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Migrating to Harbour

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Migrating to Harbour

Post 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!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Migrating to Harbour

Post 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."
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Migrating to Harbour

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Migrating to Harbour

Post 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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Migrating to Harbour

Post by Antonio Linares »

James,

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

Antonio Linares
www.fivetechsoft.com
Post Reply