Page 1 of 1

How to declar variable in HMG

Posted: Mon Jun 07, 2010 3:34 pm
by huangchenmin
Dear all
:roll: :D :lol: I read the tutorials all about hoe to use controls and define form except how to define variable in different data type and scope. I also long to know about passing paramenters to sub-routine and return something back from it. :roll: :roll: :mrgreen:
Could anyone provide info?
Best Regards :mrgreen: :lol:
TOM :roll:

Re: How to declar variable in HMG

Posted: Mon Jun 07, 2010 4:10 pm
by esgici
Hi Tom,

HMG isn't a programming language, only a GUI library for Harbour compiler. So you can't find such informations in HMG docs.

Harbour consists of the xBase language compiler, so your question is about xBase language.

In this language variable declaration isn't mandatory, every variable gain their own type and scope "on the fly", that is when and where it is used first.

Please look at here.

Especially:

5.Statements\LOCAL, MEMVAR, PARAMATER, PRIVATE and PUBLIC items.

Regards

--

Esgici

Re: How to declar variable in HMG

Posted: Tue Jun 08, 2010 8:49 am
by huangchenmin
esgici wrote:Hi Tom,

HMG isn't a programming language, only a GUI library for Harbour compiler. So you can't find such informations in HMG docs.

........

Esgici
Thank You ,Sir! :D :D