xHarbour -> Harbour compatibility
xHarbour -> Harbour compatibility
Hi!
I wish to test my xHarbour+FWH8.12 to Harbour 1.0.1
problem is... I have GLOBAL and GLOBAL EXTERNAL declarations... massive like entirely on my .prgs'
question is... What can I do?
Regards,
I wish to test my xHarbour+FWH8.12 to Harbour 1.0.1
problem is... I have GLOBAL and GLOBAL EXTERNAL declarations... massive like entirely on my .prgs'
question is... What can I do?
Regards,
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Re: xHarbour -> Harbour compatibility
I converts a system with my Xharbour to Harbour without any problem, but I used this harbour:
http://sourceforge.net/project/download ... p&65460143
because he thought more complete, the xHb.lib used to avoid conflicts in some statements to my xharbour.
It worked smoothly
Saluds, Ale
http://sourceforge.net/project/download ... p&65460143
because he thought more complete, the xHb.lib used to avoid conflicts in some statements to my xharbour.
It worked smoothly
Saluds, Ale
aleseribeli@hotmail.com
FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
Re: xHarbour -> Harbour compatibility
Hello Ale,
I tried to include xHB.lib but I still having errors on my GLOBAL..EXTERNAL variables
Using xMate compiling xHarbour App to Harbour 1.0.1:
Regards
I tried to include xHB.lib but I still having errors on my GLOBAL..EXTERNAL variables
Using xMate compiling xHarbour App to Harbour 1.0.1:
Regards
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: xHarbour -> Harbour compatibility
Frances,
Try this define:
#define GLOBAL public
Try this define:
#define GLOBAL public
Re: xHarbour -> Harbour compatibility
Antonio Linares wrote:Frances,
Try this define:
#define GLOBAL public
Mr. Antonio,
Thank you for the suggestion and reply.
Public has to be inside procedure/function... I will just move my variable declarations into my init procedure...
But what about the GLOBAL EXTERNAL? would it be #define GLOBAL EXTERNAL public ?
Regards
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Re: xHarbour -> Harbour compatibility
Hi Mr. Frances:fraxzi wrote:But what about the GLOBAL EXTERNAL? would it be #define GLOBAL EXTERNAL public ?
I think you'll get the same efect with: #xtransalate GLOBAL EXTERNAL => Public
Regards.
Manuel Mercado.
manuelmercado at prodigy dot net dot mx
Re: xHarbour -> Harbour compatibility
Sorry for the typo, I meant:mmercado wrote:I think you'll get the same efect with: #xtransalate GLOBAL EXTERNAL => Public
#xtranslate GLOBAL EXTERNAL => Public
manuelmercado at prodigy dot net dot mx
Re: xHarbour -> Harbour compatibility
Thank you so much Gurus Manuel and Antonio,
But after compilation.... I have tons of to do...
I need to abandon and going back to xHarbour where all apps are written...
sorry.
Kind regards,
But after compilation.... I have tons of to do...
I need to abandon and going back to xHarbour where all apps are written...
sorry.
Kind regards,
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Re: xHarbour -> Harbour compatibility
Dear Mr.Fraxzi,
Can I ask you the reason for moving from xHarbour to Harbour.
Any advantage ? Or is it just for testing purpose
Regards
Anser
Can I ask you the reason for moving from xHarbour to Harbour.
Any advantage ? Or is it just for testing purpose
Regards
Anser
Re: xHarbour -> Harbour compatibility
anserkk wrote:Dear Mr.Fraxzi,
Can I ask you the reason for moving from xHarbour to Harbour.
Any advantage ? Or is it just for testing purpose
Regards
Anser
Mr. Anser,
Nice to hear from you again.
I dont mind answering.... well, I havent tried Harbour ever since I jumped to xHarbour...
I noticed that Harbour project is more active than xHarbour (based on release dates) so I just wonder what could be the experience and difference (?).
I guess I wouldn't know the advantage... But i'm still optimistic in converting/testing my apps with Harbour 1.0.1 or latest.
Regards,
Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Re: xHarbour -> Harbour compatibility
Dear Mr.Fraxzi,
Thankyou for the explanation
Regards
Anser
Thankyou for the explanation
Regards
Anser
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
Re: xHarbour -> Harbour compatibility
Manuel,
I think, GLOBAL EXTERNAL must be replaced by MEMVAR, because you define a (GLOBAL) PUBLIC variable in the main module and then in all other modules using this variable, you have to decleare this variable as GLOBAL EXTERNAL or MEMVAR.mmercado wrote:mmercado wrote:I think you'll get the same efect with: #xtranslate GLOBAL EXTERNAL => Public
Code: Select all
#xtranslate GLOBAL EXTERNAL => MEMVAR
kind regards
Stefan
Stefan
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: xHarbour -> Harbour compatibility
Frances, Stefan,
yes, I agree too that you could use Stefan suggestion, to translate global external into memvar.
yes, I agree too that you could use Stefan suggestion, to translate global external into memvar.
- xProgrammer
- Posts: 464
- Joined: Tue May 16, 2006 7:47 am
- Location: Australia
Re: xHarbour -> Harbour compatibility
Whilst it isn't a direct replacement in the sense that it isn't a matter of simply using an #xcommand or #xtranslate you can achieve the required outcome using a class to hold all your globals as member variables. I find this technique very useful.
You could use something along the following lines:
You could use something along the following lines:
Code: Select all
CLASS GlobalData
DATA ADSServer
DATA ADSLogin
...
METHOD New() CONSTRUCTOR
ENDCLASS
METHOD New() CLASS GlobalData
::ADSServer := 0
::ADSLogin := 0
...
RETURN self
-
- Posts: 167
- Joined: Thu Mar 22, 2007 11:24 am
Re: xHarbour -> Harbour compatibility
Hello,
In old days , in clipper , global variables were simulated as :
In prog1
GLOBAL var1 change in STATIC Var1
# ifdef __XHARBOUR
GLOBAL Var1
# else
STATIC Var1
# endif
In prg1 we provide a function
# ifndef __XHARBOUR
FUNCTION Var1()
RETURN var1
Or
FUNCTION Var1(NewValue)
IF PCOUNT()>0
Var1 := NewValue
END
RETURN var1
# endif
In other modules
# ifdef __XHARBOUR
GLOBAL EXTERNAL Var1
# else
# xtranslate var1=>var1()
# endif
Frank
In old days , in clipper , global variables were simulated as :
In prog1
GLOBAL var1 change in STATIC Var1
# ifdef __XHARBOUR
GLOBAL Var1
# else
STATIC Var1
# endif
In prg1 we provide a function
# ifndef __XHARBOUR
FUNCTION Var1()
RETURN var1
Or
FUNCTION Var1(NewValue)
IF PCOUNT()>0
Var1 := NewValue
END
RETURN var1
# endif
In other modules
# ifdef __XHARBOUR
GLOBAL EXTERNAL Var1
# else
# xtranslate var1=>var1()
# endif
Frank