Início > def > variable 
 en fr de es it nl pl pt mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Anterior  Próximo  Editar  Renomear  Desfazer  Procurar  Administração  
Documentação  
Cuidado! Esta página não está traduziada.  Veja a versão em inglês 
variable
A variable is a symbol associated with an objeto or a method that can be either read or written.

Each variable must have a datatype. i.e. String, Integer, etc.

A variable can be public, private or local.

Only classes written in Gambas can declare public variables.

A variable is faster to access (because it accesses memory directly for reading and writing its value) than a property, but you have no control on it.

In order to use a variable you must declare it either in the beginning of the class or in the beginning of the procedure.

In VB Variables can be declared "inside" the code.

Beware that variables whose datatype is Object, any array, or any class, are initialized with NULL.

You must initialize them with a real object created with the NEW keyword before using them.

Veja também

Declaração de Variáveis, Declaração de Variáveis Locais, Object Model