Migrating to Harbour

Re: Migrating to Harbour

Postby Enrico Maria Giordano » Thu Jan 08, 2015 9: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
User avatar
Enrico Maria Giordano
 
Posts: 8330
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Migrating to Harbour

Postby elvira » Thu Jan 08, 2015 9: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.
elvira
 
Posts: 515
Joined: Fri Jun 29, 2012 12:49 pm

Re: Migrating to Harbour

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

Re: Migrating to Harbour

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8330
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Migrating to Harbour

Postby Antonio Linares » Fri Jan 09, 2015 11:01 am

:-D :-D :-D

I can read your mind ;-)
regards, saludos

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

Re: Migrating to Harbour

Postby Enrico Maria Giordano » Fri Jan 09, 2015 11:28 am

Antonio,

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

I can read your mind ;-)


:D :D :D

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

Re: Migrating to Harbour

Postby James Bott » Fri Jan 09, 2015 4: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: 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.
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Migrating to Harbour

Postby Antonio Linares » Fri Jan 09, 2015 4:21 pm

regards, saludos

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


Re: Migrating to Harbour

Postby James Bott » Fri Jan 09, 2015 5: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.
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Migrating to Harbour

Postby Antonio Linares » Fri Jan 09, 2015 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41321
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Migrating to Harbour

Postby James Bott » Fri Jan 09, 2015 5: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."
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Migrating to Harbour

Postby Enrico Maria Giordano » Fri Jan 09, 2015 6: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
User avatar
Enrico Maria Giordano
 
Posts: 8330
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Migrating to Harbour

Postby Antonio Linares » Fri Jan 09, 2015 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41321
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Migrating to Harbour

Postby Antonio Linares » Fri Jan 09, 2015 6:26 pm

James,

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

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

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 15 guests