FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Migrating to Harbour
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Thu Jan 08, 2015 09:32 PM
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
Posts: 518
Joined: Fri Jun 29, 2012 12:49 PM
Re: Migrating to Harbour
Posted: Thu Jan 08, 2015 09:59 PM

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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Thu Jan 08, 2015 11:17 PM

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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 10:36 AM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 11:01 AM

I can read your mind ;-)

:-D:-D:-D

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 11:28 AM
Antonio,

Antonio Linares wrote: :-) :-) :-)

I can read your mind :-)


:-) :-) :-)

EMG
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 04:03 PM
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 (fw): Select all Collapse
     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.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 04:21 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 04:31 PM

Thank you, Antonio!

EMG

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 05:10 PM

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.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 05:23 PM

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
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 05:50 PM
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."
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 06:08 PM

As usual. Great attention to theory and no care for practical problems. This is one of the reasons why I dropped Harbour... :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 06:25 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrating to Harbour
Posted: Fri Jan 09, 2015 06:26 PM

James,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com