Re: Declaring and using Global Variables

From: Maurício Bellissimo Falleiros <mbf_at_uniconsult.com.br>
Date: Mon, 04 Oct 1999 13:59:59 -0300
Message-ID: <37F8DD0F.BD783B71_at_uniconsult.com.br>


Hi Farj,

A global variable is declared automatically the first time your code name it.
It can only store character values.

There are times when you need to check its value (an if statement or so) without knowing if it has already been initialized. If this is the case, you code first "default_value('<initial_value>', 'global.<your_global_name>')"
where <initial_value> can even be null... (If you don't, you get an error...something about the global having not been declared).
Besides that, it is just a global variable, as it wuold be in Basic code...
Ah! It stands alive between forms in an MDI application.

Hope this helps,
Maurício.

-- 
Maurício Bellissimo Falleiros <mailto:mbf_at_uniconsult.com.br>

Uniconsult Sistemas e Serviços <mailto:uss_at_uniconsult.com.br>
R. Demóstenes, 627 cj.134/142 - Campo Belo - São Paulo/SP - 04614-013
Brasil
Fone/Fax: +55-11-5350885 +55-11-5333335

"Em um minuto apenas há tempo
Para decisões e revisões que um minuto revoga."
T.S.Eliot


* Sent from RemarQ http://www.remarq.com * The Internet's Discussion Network *
*  The fastest and easiest way to search and participate in Usenet - Free!   *
Received on Mon Oct 04 1999 - 18:59:59 CEST

Original text of this message