Principal > def > variable 
 en fr de it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previo  Siguiente  Editar  Renombrar  Deshacer  Buscar  Administración  
Documentación  
¡Precaución! La página no está traducida.  Véase la versión inglesa 
variable
A variable is a symbol associated with an objeto or a método 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 propiedad, but you have no control on it.

In order to use a variable you must declare it either in the beginning of the clase 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.

Véase también

Declaración de Variables, Declaración de Variables Locales, El Modelo de Objetos de Gambas