Migrating to Harbour

Re: Migrating to Harbour

Postby Enrico Maria Giordano » Thu Feb 05, 2015 9:39 am

Antonio,

great! Now I can go on with my tests! :-)

I'll keep you informed...

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

Re: Migrating to Harbour

Postby Enrico Maria Giordano » Thu Feb 05, 2015 11:28 am

Another Harbour bug. The following sample:

Code: Select all  Expand view
FUNCTION MAIN()

    LOCAL n := "01"

    PRIVATE cVar01 := "Test"

    ? cVar&n

    INKEY( 0 )

    RETURN NIL


gives this compilation error:

Code: Select all  Expand view
Harbour 3.2.0dev (r1501292255)
Copyright (c) 1999-2015, http://harbour-project.org/
BUG.prg(7) Error E0042  Macro of declared symbol 'CVAR&N'
1 error

No code generated.


While xHarbour compiles correctly.

Any ideas?

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

Re: Migrating to Harbour

Postby cnavarro » Thu Feb 05, 2015 11:35 am

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6501
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Migrating to Harbour

Postby Enrico Maria Giordano » Thu Feb 05, 2015 11:41 am

Cristobal,

thank you. Is this the correct way?

Code: Select all  Expand view
FUNCTION MAIN()

    LOCAL n := "01"

    PRIVATE cVar01 := "Test"

    ? &( "cVar" + n )

    INKEY( 0 )

    RETURN NIL


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

Re: Migrating to Harbour

Postby cnavarro » Thu Feb 05, 2015 11:48 am

Look

Code: Select all  Expand view

MEMVAR cVar01

FUNCTION MAIN()

    LOCAL n := "01"

    PRIVATE cVar01 := "Test"

    ? &( "cVar" + n )

    INKEY( 0 )

    RETURN NIL


 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6501
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Re: Migrating to Harbour

Postby James Bott » Fri Feb 06, 2015 5:40 am

Enrico,

Are you still using PRIVATEs?

James
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 Feb 06, 2015 10:07 am

James,

James Bott wrote:Are you still using PRIVATEs?


No, but I have older applications to maintain.

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

Re: Migrating to Harbour

Postby James Bott » Fri Feb 06, 2015 3:33 pm

Enrico,

Thank goodness. You had me worried.

Those older apps must be really old.

James
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 Feb 06, 2015 3:40 pm

James,

James Bott wrote:Thank goodness. You had me worried.


:-)

James Bott wrote:Those older apps must be really old.


19xx :-)

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

Re: Migrating to Harbour

Postby TimStone » Fri Feb 06, 2015 11:11 pm

Yeah some of us are getting up there in years.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Migrating to Harbour

Postby Gale FORd » Sat Feb 07, 2015 7:48 pm

What do you mean getting? dBase II cp/m
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: Migrating to Harbour

Postby TimStone » Sat Feb 07, 2015 8:34 pm

Gale,

Several years ago I attended some training sessions held by Microsoft, and all the people there were commenting how they had to earn their retirement by 35 years of age. Beyond that, they believed, no one could possibly continue as a programmer.

When I explained I had been programming, as my 3rd profession, for over 30 years, they didn't think that was possible.

And I do remember starting my first applications using dbase II, CP/M and the runtime licenses from Ashton Tate. Because they were close, it was always fun to go to their offices for "training" sessions.

A few years ago I went to the Microsoft museum and everything on display had been in my "arsenal" at one time or another. I thought maybe I should take residence in a display case with all the other dinosaurs.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Migrating to Harbour

Postby KarlaSanchez » Mon Nov 28, 2016 9:27 pm

Tengo una cita en el sat para pagar impuestos de mi negocio.
KarlaSanchez
 
Posts: 3
Joined: Wed Oct 26, 2016 6:06 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 28 guests