Dear all
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.
Could anyone provide info?
Best Regards
TOM
How to declar variable in HMG
Moderator: Rathinagiri
- 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
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
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
-
- Posts: 157
- Joined: Mon Jun 07, 2010 2:24 am
Re: How to declar variable in HMG
Thank You ,Sir!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