FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Migrate to Harbour
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sun Jun 15, 2014 03:22 PM

Harbour crew changed ULONG to HB_ULONG. Too much for me. Sorry, I give up. :-(

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrate to Harbour
Posted: Sun Jun 15, 2014 04:24 PM

Enrico,

Its a minor difficulty and once you get used to it, its a very clever desition because using the prefix HB_ we avoid names collisions with other libraries names.

Trust me, and try it, please :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Migrate to Harbour
Posted: Sun Jun 15, 2014 04:26 PM

Enrico,

I just tried TRY/CATCH/END in FWH 14.04 with Harbour. It's working fine.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sun Jun 15, 2014 04:50 PM
Antonio,

Antonio Linares wrote:Enrico,

Its a minor difficulty and once you get used to it, its a very clever desition because using the prefix HB_ we avoid names collisions with other libraries names.

Trust me, and try it, please :-)


Ok, I'll give Harbour another chance. But it'll be the last one. :-)

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Sun Jun 15, 2014 04:51 PM
Michel,

driessen wrote:Enrico,

I just tried TRY/CATCH/END in FWH 14.04 with Harbour. It's working fine.


I'm currently testing Harbour in console mode, no FWH.

EMG
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Migrate to Harbour
Posted: Sun Jun 15, 2014 11:17 PM
Enrico Maria Giordano wrote:Any news about TRY/CATCH/END implementation in Harbour?

EMG

Not natively implemented by Harbour.
This is done by translates in fivewin.ch. So for us TRY/CATCH work the same way in both xHarbour and Harbour.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Migrate to Harbour
Posted: Sun Jun 15, 2014 11:48 PM

Mr. Rao,

yes, that was the problem, now I will go for the next tests

regards and thanks

Marcelo Via

Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Migrate to Harbour
Posted: Mon Jun 16, 2014 02:39 AM
Hello,

I found a serious problem with ADS, I prepared a test.adt table with the follow structure (ADT) and show the type compatibility from xHarbour and harbour

Code (fw): Select all Collapse
ADT                    xHarbour            Harbour
=================================================
DOUBLE                    X                     - 
DATE                       X                     X
BINARY                    X                     -
MONEY                    X                      X
INTEGER                  X                      X
CHARACTER              X                      X
AUTOINC                 X                       -
NUMBER                  X                       X
SHORT                    -                       X
IMAGE                     X                      -


The problems is with the ADS RDD implementation, maybe I'm doing something wrong, what I want to know is, if someone in the forum work with ADS + Harbour and use some of the data types I showed in the table

Regards

Marcelo Vía
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Migrate to Harbour
Posted: Mon Jun 16, 2014 04:19 AM

I have not worked recently but I did quite sometime back with both xHarbour and Harbour. All datatypes were available in both. In that version, some datatypes were displayed differently in xharbour and harbour.

can you post screenshots of:
XBROWSER DBSTRUCT()
?

Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Mon Jun 16, 2014 09:46 PM
Dear friends, any ideas on how to fix the error below on Harbour?

Code (fw): Select all Collapse
Error: Unresolved external '_HB_FUN___CLASSINS'


EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Mon Jun 16, 2014 09:49 PM

In lib Harbour folder I noticed many .lib with "bcc" in their names. As I'm using BCC, do I have to use them? Or can I use the "standard" libs?

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Migrate to Harbour
Posted: Mon Jun 16, 2014 09:59 PM

Enrico,

Please use the libs that are used in FWH\samples\buildh.bat thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Migrate to Harbour
Posted: Tue Jun 17, 2014 02:51 AM
Mr. Rao,

I add a image with 2 xbrowse with table structure, the more left is obtained with xHarbour and the other with Harbour

https://app.box.com/s/m8qryt63i5a4ae5iy3qq

My problem is to view the table's columns from FastReport, will be possible to overwrite DBSTRUCT to be compatible the data structure information between Harbour and xHarbour

Regards

Marcelo Vía
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Migrate to Harbour
Posted: Tue Jun 17, 2014 03:26 AM
Hello,

This seems to work

Code (fw): Select all Collapse
FUNCTION dbstruct()
   LOCAL i, aS := {}, aLine, t

   FOR i:=1 TO FCOUNT()
      t := fieldType(i)
      DO CASE
         CASE t = "B"; t := "DOUBLE"
         CASE t = "W"; t := "BINARY"
         CASE t = "+"; t := "AUTOINC"
         CASE t = "T"; t := "TIME"
         CASE t = "P"; t := "IMAGE"
      ENDCASE
      aLine := { FIELDNAME(i), t, fieldlen(i), fielddec(i)   }
      AADD( aS, aLine )
   NEXT

   RETURN as


now I can't see the TIME type. I need to do more test to see if this is stable

regards

Marcelo Vía
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Migrate to Harbour
Posted: Tue Jun 17, 2014 07:59 AM
Enrico Maria Giordano wrote:Dear friends, any ideas on how to fix the error below on Harbour?

Code (fw): Select all Collapse
Error: Unresolved external '_HB_FUN___CLASSINS'


EMG


Solved changing to __ClassInstance().

EMG