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 »

Another Harbour bug. The following sample:

Code: Select all

FUNCTION MAIN()

    LOCAL n := "01"

    PRIVATE cVar01 := "Test"

    ? cVar&n

    INKEY( 0 )

    RETURN NIL
gives this compilation error:

Code: Select all

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
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Migrating to Harbour

Post by cnavarro »

C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
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 »

Cristobal,

thank you. Is this the correct way?

Code: Select all

FUNCTION MAIN()

    LOCAL n := "01"

    PRIVATE cVar01 := "Test"

    ? &( "cVar" + n )

    INKEY( 0 )

    RETURN NIL
EMG
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Migrating to Harbour

Post by cnavarro »

Look

Code: Select all

MEMVAR cVar01

FUNCTION MAIN()

    LOCAL n := "01"

    PRIVATE cVar01 := "Test"

    ? &( "cVar" + n )

    INKEY( 0 )

    RETURN NIL


 
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
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,

Are you still using PRIVATEs?

James
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 »

James,
James Bott wrote:Are you still using PRIVATEs?
No, but I have older applications to maintain.

EMG
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,

Thank goodness. You had me worried.

Those older apps must be really old.

James
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 »

James,
James Bott wrote:Thank goodness. You had me worried.
:-)
James Bott wrote:Those older apps must be really old.
19xx :-)

EMG
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Migrating to Harbour

Post by TimStone »

Yeah some of us are getting up there in years.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Re: Migrating to Harbour

Post by Gale FORd »

What do you mean getting? dBase II cp/m
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Migrating to Harbour

Post by TimStone »

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
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
KarlaSanchez
Posts: 3
Joined: Wed Oct 26, 2016 6:06 pm

Re: Migrating to Harbour

Post by KarlaSanchez »

Tengo una cita en el sat para pagar impuestos de mi negocio.
Post Reply