How to declar variable in HMG

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

Post Reply
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

How to declar variable in HMG

Post 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:
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: How to declar variable in HMG

Post 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
Viva INTERNATIONAL HMG :D
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Re: How to declar variable in HMG

Post 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
Post Reply