Beruflich Dokumente
Kultur Dokumente
Gambas
ndice
Referencia de Gambas
Descripciones del Lenguaje.
ndice Alfabtico del Lenguaje
Componentes
Libreras
ndice del Lenguaje por Categoras
ndice alfabtico del lenguaje
Tutoriales
Instalacin (Libreras necesarias)
Lo ms bsico de Gambas
Interfaz grfica
Varios
Aplicaciones en varios idiomas
Artculos Gambas
Diferencia entre VB
Como escribir componentes
Introduccin Visual a Gambas
Cmo puedo convertir mi proyecto VB a Gambas?
Cmo se hace para ?
Programacin en N-capas Bajo Gambas
Un ejemplo de juego simple, The Bisha
Ejemplo de manejo de procesos, GbPing
Otro ejemplo de colaboracin entre procesos, "GbPloticusDemo"
Asignacin
Asigna el valor de una expresin a uno de los siguientes elementos:
Algunas instrucciones que devuelven valores pueden emplear tambin la sintaxis de asignacin: EXEC,
NEW, OPEN, RAISE, SHELL.
EJEMPLO
iVal = 1972
Name = "[/def/gambas]"
hObject.Property = iVal
cCollection[sKey] = Name
...
EJEMPLO
El valor verdadero.
TRUE
El valor falso.
FALSE
&H10BF332E, &10BF332E
&H8000&, &HFFFF&
Enteros binarios.
&X1010010101, %101001011
1.0, -5.345219E+45
Constantes de Cadena.
Constantes de Cadena para ser traducidas. ("Este programa est muy bien!")
Constante nula / cadena vaca.
NULL
EQUIVALENTE ASCII
\n
Chr$(13)
\r
Chr$(10)
\t
Chr$(9)
\"
Comillas
\\
\xx
Chr$(&Hxx)
Puede escribir una constante de cadena dividida en varias partes sucesivas. Por ejemplo,
"Gambas" " es " "fenmeno"
Chr$
Sintaxis
Ejemplo
PRINT Chr$(65)
A
PUBLIC SUB Button1_Click()
DIM X AS Integer
FOR X = 32 TO 127
PRINT Chr$(X);
NEXT
END
Constantes Predefinidas
Tipos de datos
Estas constantes son devueltas por TypeOf.
gb.Null
valor NULL
gb.Boolean
valor Boolean.
gb.Byte
valor Byte.
gb.Short
valor Short.
gb.Integer
valor Integer.
gb.Long
valor Long.
gb.Single
valor Single.
gb.Float
valor Float.
gb.Date
valor Date.
gb.String
valor String.
gb.Variant
valor Variant.
gb.Object
referencia Object.
gb (gb)
Esta clase esttica incluye todas las constantes bsicas de Gambas empleadas por un gran nmero de
funciones.
Smbolos
Tipos de archivo
Estas constantes tiene uso en la funcin Stat().
gb.File
Archivo normal
gb.Directory Carpeta
gb.Device
gb.Pipe
gb.Socket
gb.Link
Enlace simblico
Constantes de cadena
gb.NewLin Caracter de "Nueva Lnea". Equivalente a Chr$(10)
e
gb.Tab
Tipos de ordenacin
Constantes empleadas en el mtodo Sort de las Matrices.
gb.Binary Ordenacin binaria.
gb.Text
Das de la semana
Estas constantes son valores devueltos por la funcin WeekDay().
gb.Monday
Lunes
gb.Tuesday
Martes
gb.Wednesday Mircoles
gb.Thursday
Jueves
gb.Friday
Viernes
gb.Saturday
Sbado
gb.Sunday
Domingo
Equivalente a "0.00"
gb.Percent
Equivalente a "###%"
gb.Scientific
gb.LongTime
Formatos miscelneos
gb.Standard Emplee gb.GeneralNumber para formatear nmeros y gb.GeneralDate para fechas y horas.
CONTINUE
... LOOP
DO
FOR
Bucle infinito.
... NEXT
FOR EACH
REPEAT
WHILE
... UNTIL
... WEND
BREAK
Sintaxis
BREAK
Abandona un bucle inmediatamente.
PUBLIC SUB Button1_Click()
DIM X AS Integer
FOR X = 1 TO 1000
IF X = 200 THEN BREAK
PRINT X
NEXT
END
CONTINUE
Sintaxis
CONTINUE
Salta a la siguiente iteracin de un bucle.
Ejemplo
FOR I = 1 TO 10
IF I = 1 THEN
PRINT "Uno";
CONTINUE
ENDIF
IF I = 2 THEN
PRINT " Dos";
CONTINUE
ENDIF
PRINT I;
NEXT
PRINT
Uno Dos 3 4 5 6 7 8 9 10
DO
Sintaxis
DO [ WHILE Expresin ]
Comienza un bucle infinito delimitado por las instrucciones DO ... LOOP. Si se especifica WHILE, el bucle
se detendr cuando la Expresin sea falsa. Si la expresin es falsa al comienzo, el bucle no se ejcuta ninguna
vez.
Ejemplo
FOR
Sintaxis
FOR Variable = Expresin TO Expresin [ STEP Expresin ]
...
NEXT
Repite un bucle mientras se incrementa una variable.
Tenga en cuenta que la variable ha de ser:
Numrica, es decir, un byte, un short, un integer o un nmero real float o single.
Una variable local.
Tenga en cuenta tambin que si la expresin inicial es mayor que la final (para valores positivos de STEP), o
es menor que la final (para valores negativos), el bucle nunca se ejecutar.
DIM I AS Integer
FOR I = 1 TO 20 STEP 3
PRINT I & " ";
NEXT
1 4 7 10 13 16 19
FOR EACH
Sintaxis
FOR EACH Variable IN Expresin
NEXT
Repite un bucle mientras se enumera un objeto.
Expresin debe ser una referencia a un objeto enumerable: por ejemplo, una coleccin, o una matriz.
Ejemplo
Dict["Verde"] = 2
FOR EACH Elemento IN Dict
PRINT Elemento;
NEXT
3 1 2
REPEAT
Sintaxis
Sintaxis
REPEAT
Da comienzo a una estructura de bucle delimitada por las instrucciones REPEAT ... UNTIL.
Tenga en cuenta que el bucle repeat siempre se ejecuta al menos una vez, incluso si el valor indicado por
UNTIL es falso inicialmente.
UNTIL
Sintaxis
Sintaxis
UNTIL Expresin
Finaliza un bucle delimitado por las instrucciones REPEAT ... UNTIL.
El bucle se repite hasta que la Expresin es cierta.
Ejemplo
WHILE
Sintaxis
Sintaxis
WHILE Expresin
Da comienzo a un bucle delimitado por las instrucciones WHILE ... WEND.
El bucle se repite mientras la Expresin sea cierta.
Si la expresin es falsa al inicio, el bucle nunca se ejecuta.
La estructura DO WHILE ... LOOP es equivalente.
Ejemplo
Salto incondicional.
QUIT
Cierra el programa.
RETURN
STOP
WITH
GOTO
Sintaxis
GOTO Etiqueta
Salta a una etiqueta declarada en otro punto de la funcin.
QUIT
Sintaxis
QUIT
Finaliza un programa inmediatamente.
Todas las ventanas se cerrarn, y todo se liberar lo mejor posible.
RETURN
Sintaxis
RETURN [ Expresin ]
Sale de un procedimiento o funcin devolviendo el valor Expresin.
Si sale de un procedimiento, no puede especificar ninguna Expresin.
Si sale de una funcin, y no se especifica la Expresin, el valor devuelto es el valor por defecto asociado al
tipo de dato devuelto por la funcin.
STOP
Sintaxis
STOP
Detiene el programa y lanza el depurador, del mismo modo que un punto de interrupcin en la lnea actual.
Esta instruccin no hace nada si el programa no est siendo depurado.
Ejemplo
WITH
Sintaxis
Sintaxis
WITH Objeto
...
END WITH
Entre las instrucciones WITH y END WITH, una expresin que comience por un punto se refiere al objeto.
Puede imbricar las estructuras WITH ... END WITH.
WITH hButton
.Text = "Cancelar"
END WITH
'es equivalente a
hButton.Text = "Cancelar"
IIf
IF
SELECT CASE
Estructura condicional.
Choose
Sintaxis
Valor = Choose (Eleccin , Resultado #1 , Resultado #2 [ , ... ] )
Esta funcin devuelve el valor de uno de sus argumentos Resultado #i , de acuerdo con el valor de Eleccin.
Si Eleccin es 1, se devuelve Resultado #1.
Si Eleccin es 2, se devuelve Resultado #2, y as en adelante...
Si Eleccin es menor o igual a cero, o no hay valor especificado para el valor de Eleccin, se
devuelve NULL.
Ejemplo
X = 3
PRINT Choose(X, "uno", "dos", "tres", "cuatro")
tres
Ejemplo
X = 3
PRINT IsNull(Choose(X * 2, "uno", "dos", "tres", "cuatro"))
True
IIf
Sintaxis
Value = IIf ( Boolean , True value [ , False value ] )
Value = If ( Boolean , True value [ , False value ] )
Evaluate the Boolean expression, and return True value if this expression is true, or False value if this
expression is false.
If False value is not specified, it is assumed to be NULL.
Be careful! Contrary to IF, or the C/Perl ? operator, both True value and False value are evaluated,
whatever the value of Boolean is.
Example
X = 7
PRINT If((X MOD 2) = 0, "even", "odd")
odd
Example
IF
Sintaxis
IF Expresin [ { AND IF | OR IF } Expresin ... ] THEN
...
[ ELSE IF Expresin [ { AND IF | OR IF } Expresin ... ] THEN
... ]
[ ELSE
... ]
ENDIF
Estructura condicional de control.
Si utiliza varias expresiones de comprobacin separadas por la palabra clave AND IF, son evaluadas de
izquierda a derecha hasta que la primera con valor FALSE es alcanzada, y se considera entonces el conjunto
con valor FALSE. Si todas las expresiones son TRUE, el conjunto se considera con valor TRUE.
Si utiliza varias expresiones de comprobacin separadas por la palabra clave OR IF, son evaluadas de
izquierda a derecha hasta que la primera con valor TRUE es alcanzada, y se considera entonces el conjunto
con valor TRUE. Si todas las expresiones son FALSE, el conjunto se considera con valor FALSE.
No se puede mezclar las palabras clave AND IF y OR IF en una misma lnea.
DIM k AS Integer
FOR k = 1 TO 10
IF k < 5 OR IF k > 5 THEN
PRINT k;;
ELSE
PRINT
PRINT "Llegamos al 5!"
END IF
NEXT
PRINT
1 2 3 4
Llegamos al 5!
6 7 8 9 10
SELECT
s
Sintaxis
SELECT [ CASE ] Expresin
[ CASE Expresin [ TO Expresin #2 ] [ , ... ]
... ]
[ CASE Expresin [ TO Expresin #2 ] [ , ... ]
... ]
[ { CASE ELSE | DEFAULT }
... ]
END SELECT
Selecciona una expresin a comparar, y ejecuta el cdigo encerrado en la expresin correspondiente CASE.
Si no concuerda ninguna de las expresiones CASE, se ejecutar el cdigo dentro de la expresin DEFAULT
o CASE ELSE.
Una expresin CASE es una lista de valores simples o intervalos entre dos valores separados por la palabra
clave TO.
Ejemplo
x
w
a
b
c
d
e
f
AS
AS
AS
AS
AS
AS
AS
AS
Integer
Integer
Integer
Integer
Integer
Integer
Integer
Integer
FOR x = 1 TO 1000
w = Int(Rnd(6) + 1)
SELECT CASE w
CASE 1
a = a + 1
CASE 2
b = b + 1
CASE 3
c = c + 1
CASE 4
d = d + 1
CASE 5
e = e + 1
CASE 6
f = f + 1
CASE ELSE
PRINT "Esto es imposible!"
END SELECT
NEXT
PRINT a, b, c, d, e, f
Cierra un Flujo
EOf
FLUSH
INPUT
INPUT FROM
LINE INPUT
LOCK
LOf
OPEN
OUTPUT TO
READ
SEEK
SEEk
UNLOCK
WRITE
CLOSE
Sintaxis
Sintaxis
CLOSE [ # ] Flujo
Eof
Sintaxis
Sintaxis
Booleano = Eof ( [ Flujo ] )
FLUSH
Sintaxis
Sintaxis
FLUSH [ [ # ] Flujo ]
INPUT
Sintaxis
Sintaxis
INPUT [ # Flujo , ] Variable [ , Variable ... ]
Lee el Flujo, y convierte elementos separados por caracteres de espacio o retornos de carro con la funcin
Val antes de situar el valor en las variables.
Si no se especifica el flujo, se lee de la entrada estndar.
INPUT FROM
Syntax
Sintaxis
INPUT FROM Stream
Redirects the default standard input back to the value it had before the last redirection
LINE INPUT
Sintaxis
LINE INPUT [ # Flujo , ] Variable
LOCK
Sintaxis
Sintaxis
LOCK [ # ] Flujo
Lof
Sintaxis
Longitud = Lof ( Flujo AS Stream )
Si el flujo no es un archivo, es decir, un objeto Process o un Socket, retorna el nmero de bytes que pueden
ser ledos de una sola vez.
PUBLIC SUB Process_Read()
DIM sBuffer AS String
PRINT "Puedo leer: "; Lof(LAST)
' Read them
READ #LAST, sBuffer, Lof(LAST)
END
OPEN
x
Sintaxis
Stream = OPEN File name FOR [ READ | INPUT ] [ WRITE | OUTPUT ] [ CREATE | APPEND ] [
WATCH ]
Opens a file for reading, writing, creating or appending data. The file must exist, unless the CREATE keyword
is specified.
If the CREATE keyword is specified, then the file is created, or cleared if it already exists.
If the APPEND keyword is specified, then the file pointer is moved to the end of file just after the file is
opened.
If the READ or WRITE keyword are specified, then the input-output are not buffered.
If the INPUT or OUTPUT keyword are specified, then the input-output are buffered.
If the WATCH keyword is specified, the file is watched by the interpreter :
o If at least one byte can be read from the file, then the event handler File_Read() is called.
o If at least one byte can be written into the file, then the event handler File_Write() is called.
If the file is successfully opened, a stream object is returned to the variable Stream.
Errors
MESSAGE
DESCRIPTION
Access forbidden
(#43)
The requested access to the file is not allowed, or search permission is denied for one of
the directories in the path prefix of pathname, or the file did not exist yet and write
access to the parent directory is not allowed.
File is a directory
(#46)
File or directory
File name does not exist, or a directory component in pathname does not exist or is a
does not exist (#45) dangling symbolic link.
Out of memory
(#1)
Device is full (#37) File name was to be created but the device containing File name has no room for the
new file.
Not a directory...
(#49)
System error...
(#42)
File name refers to an executable image which is currently being executed and
write access was requested.
Example
' Reading data from a BMP file, known to use little-endian format :
DIM hFile AS File
DIM iData AS Integer
hFile = OPEN "image.bmp" FOR INPUT
hFile.ByteOrder = gb.LittleEndian
...
READ #hFile, iData
OUTPUT TO
Sintaxis
OUTPUT TO Flujo
OUTPUT TO DEFAULT
PRINT
Sintaxis
Sintaxis
PRINT [ # Flujo , ] Expresin [ { ; | ;; | , } Expresin ... ] [ { ; | ;; | , }
READ
Syntax
Sintaxis
READ [ # Stream , ] Variable [ , Length ]
READ [ # Pointer , ] Variable [ , Length ]
Reads the stream Stream as binary data whose type is given by the type of the variable. The binary
representation is the one used by the WRITE instruction.
If the stream is not specified, then the standard input is used.
If Variable is a string, you can specify a length that indicates the number of bytes to read. If the length is
negative, then (- Length) bytes are read up to the end of stream.
If no length is specified for a string, it is is read from the stream. The string then must have been written with
the WRITE instruction.
This instruction uses the byte order of the stream to read the data.
If you specify a Pointer instead of a Stream, then data will be read directly from the memory address
specified by the pointer.
If you try to read at a forbidden memory address, you will get an error. The interpreter won't crash.
SEEK
Syntax
Sintaxis
SEEK [ # ] Stream , Position
Defines the position of the stream pointer, for the next read/write operation.
If Position is negative, then the stream pointer is moved relatively to the end of the file.
To move the stream pointer after the end of the file, you must use the Lof function.
Example
Seek
Sintaxis
Sintaxis
Posicin = Seek ( Flujo )
UNLOCK
Sintaxis
Sintaxis
UNLOCK [ # ] Flujo
WRITE
Sintaxis
Si la Expresin es una cadena, puede especificar la longitud que indica el nmero de bytes a escribir. Si no se
especifica la longitud, ste se escribe en el flujo justo antes de la cadena de datos.
Esta funcin emplea el orden de bytes del flujo para leer datos.
Si especifica un puntero en lugar de un flujo, los datos sern escritos directamente en la direccin de
memoria especificada por el puntero.
Si intenta escribir en una direccin de memoria prohibida, obtendr un error. El intrprete no fallar.
Funciones Aritmticas
Abs
DEC
Frac
INC
Int
Max
Min
Round
Redondea un nmero.
Sgn
Funciones de Cadena
Asc
Chr$
InStr
LCase$
Left$
Len
LTrim$
Mid$
Replace$
Right$
RInStr
RTrim$
Space$
Split
String$
Subst$
Trim$
UCase$
Funciones de Conversin
CBool
CByte
CDate
CFloat
CInt
CLong
Conv$
CShort
CSng
CStr
DConv$
Convierte una cadena del juego de caracteres del sistema a UTF-8 (juego de caracteres de la interfaz
grfica).
SConv$
Convierte una cadena desde el juego de caracteres UTF-8 (el empleado en la interfaz grfica) al
juego de caracteres del sistema.
Str$
Val
DateAdd
DateDiff
Day
Hour
Minute
Month
Now
Second
Time
Timer
Week
WeekDay
Year
Funciones de Formateo
Bin$
Format$
Hex$
Funciones Miscelneas
Array
COPY
Copia un archivo.
DFree
Dir
IsDir
KILL
Elimina un archivo.
LINK
MKDIR
RDir
RENAME
RMDIR
Stat
Temp$
IsBlank
IsDigit
IsHexa
IsLCase
IsLetter
IsPunct
IsSpace
IsUCase
IsByte
IsDate
IsFloat
IsInteger
IsLong
IsNull
IsNumber
IsObject
IsShort
IsSingle
IsString
TypeOf
Rnd
Funciones Trigonomtricas
ACos
ACosh
Ang
ASin
ASinh
ATan
ATan2
ATanh
Cos
Cosh
Deg
Hyp
Mag
Pi
Devuelve o un mltiplo de .
Sin
Sinh
Tan
Tanh
Rad
Raz cbica
Exp
Exponente
Exp2
2^x
Exp10
10^x
Expm
Exp(x) - 1
Log
Logaritmo neperiano
Log2
Logaritmo en Base 2
Log10
Logaritmo decimal
Logp
Log(1+x)
Sqr
Raz cuadrada
Gestin de errores
CATCH
DEBUG
ERROR
Error
FINALLY
TRY
Gestin de Eventos
EVENT
Declara un evento.
RAISE
Dispara un evento.
Cancela un evento.
WAIT
EXTERN
Free
LIBRARY
Realloc
StrPtr
Devuelve una copia de una cadena terminada en cero, situada en la direccin de memoria dada.
Class
CREATE
EXPORT
INHERITS
Hace que una clase herede de otra sus propiedades, mtodos y eventos.
LAST
ME
NEW
Instancia un objeto.
New
Object
SUPER
Devuelve una referencia al objeto actual que utilizar la implementacin de los smbolos pblicos
de la clase padre.
Gestin de Procesos
EXEC
SHELL
Lazo de Eventos
Cuando un programa Gambas ha terminado de ejecutar su funcin de inicio Main(), entra en el llamado lazo
de eventos o event loop.
El programa se encontrar dentro de este lazo o bucle mientras haya:
un Process corriendo.
un Timer habilitado.
un File siendo vigilado.
una ventana abierta.
En este lazo, el programa procesar cualquier evento disparado por cualquier objeto, y para cada evento,
llamar a su correspondiente /def/eventhandler.
Puede llamar de forma recursiva al lazo de eventos usando la instruccin WAIT. Esto puede conllevar una
recursin infinita, pero es el nico modo de refrescar la interfaz de usuario durante la ejecucin de un bucle.
Matrices Nativas
Gambas dispone de un tipo predefinido de matriz para cada tipo de datos nativo.
El nombre de estas clases es el nombre del tipo de datos que almacenan seguido de un corchete abierto y otro
cerrado.
Byte[]
Short[]
Date[]
String[]
Arrays
An Array is a set of values indexed by an Integer that are consecutive in memory.
All the values in an array have the same datatype, and there is one array class for each native datatype, except
Boolean.
See Native Arrays for more information.
Array can be multi-dimensional, i.e. values are indexed by more than one Integer.
If an array has one dimension, then it can be shrinked or expanded dynamically, with the Resize method.
Lists
A List is a double-linked list of values indexed by an Integer, each one being stored separately in memory.
Only Variant values can be stored in a List.
The List maintains a internal pointer so that finding a position in the list does not imply iterates all the
elements.
Collections
A Collection is a set of values indexed by a String.
Only Variant values can be stored in a Collection.
The values are internally stored in a hash table that grows dynamically when more and more elements are
inserted in it.
List
Collection
Integer
Integer
String
Access
speed
Insertion
speed
Fastest
Fast
Fast
Slow
Fastest
Fast
Once the position is found, the The key hash code gives a
insertion is immediate.
index into a linked list of
memory slots.
The hash table have to be
resized and recalculated
sometimes to keep the
access fast.
Deletion
speed
Slow
Fastest
Fast
Operadores Aritmticos
Numero + Numero
-
Numero
Numero - Numero
Numero * Numero
Numero / Numero
Divide dos nmeros. Un error Divisin por cero (#26) ocurrir si el valor del divisor es
cero.
Numero ^ Potencia
Numero \ Numero
Calcula el cociente de la divisin de dos nmeros. Un error Divisin por cero (#26)
ocurrir si el valor del divisor es cero.
A \ B = Int(A / B)
Numero MOD
Numero
Calcula el resto de la divisin de dos nmeros. Un error Divisin por cero (#26)
ocurrir si el valor del divisor es cero.
Operadores de Asignacin
Variable = Expresin
Asignacin directa.
Variable += Expresin
Variable -= Expresin
Variable /= Expresin
Operadores de Cadena
Cadena & Cadena Concatena dos cadenas.
Cadena &/
Cadena
Concatena dos cadenas que contienen nombres de archivo. Aade un separador de ruta
entre dos cadenas si es necesario.
Cadena LIKE
Numero
Operadores Lgicos
Nmero AND
Nmero
Nmero
NOT
Nmero OR Nmero
Nmero XOR
Nmero
Tipos de Datos
Tipo de
dato
Valor por
defecto
Descripcin
Tamao en
memoria
Boolean
Verdadero o falso.
FALSE
1 byte
Byte
0...255
1 byte
Short
-32.768...+32.767
2 bytes
Integer
-2.147.483.648...+2.147.483.647
4 bytes
Long
-9.223.372.036.854.775.808...+9.223.372.036.854.775.807
8 bytes
Single
0.0
4 bytes
Float
0.0
8 bytes
Date
NULL
8 bytes
String
NULL
4 bytes
Variant
NULL
12 bytes
Object
NULL
4 bytes
Pointer
4 bytes
/comp/gb.compress/compress
/comp/gb.compress/uncompres
s
Connection
DB
/comp/gb.db/database
/comp/gb.db/field
/comp/gb.db/index
/comp/gb.db/result
/comp/gb.db/resultfiel
d
/comp/gb.db/table
/comp/gb.db/user
Este componente le permite acceder a los siguientes sistemas gestores de bases de datos:
PostgreSQL
MySQL
SQLite
ODBC
Tanto PostgreSQL como MySQL son sistemas de bases de datos cliente/servidor, lo que significa que la
conexin se realiza sobre un proceso servidor.
Por el contrario, SQLite est basado en un archivo o datos en memoria, por lo que no hay proceso servidor al
que conectarse. This means that the user may need to include a fully qualified path to the database file if the
default is not satisfactory. See the Connection class for more information.
Note that this component creates an intermediate layer between the specific server and your program, so that
you can use exactly the same code whatever database backend you decide to use.
This works only if:
You create your database by using the database manager or by using this component.
You use the /comp/db/find, /comp/db/create and /comp/db/edit methods.
You don't put SQL values directly in the request, but use the substitution feature of the previous
methods.
You don't use the /comp/db/exec method, that lets you send SQL request directly to the backend, so
that you can access its the specific features.
Application
/comp/gb/boolean[]
Byte[]
Class
/comp/gb/classes
Collection
/comp/gb/component
/comp/gb/component
s
Date[]
/comp/gb/enum
Error
File
Float[]
Integer[]
Long[]
Object
Object[]
Param
Process
Short[]
Single[]
/comp/gb/sta
t
Stream
String
String[]
System
User
Variant[]
gb
Application (gb)
Esta clase entrega informacin acerca de la aplicacin que est ejecutndose, y dota de acceso al entorno del
proceso as como a la lnea de comandos del proceso.
Smbolos
Byte[] (gb)
Esta clase implementa una matriz dinmica de valores Byte.
Smbolos
Mtodos
Add Clear Copy /comp/gb/byte[]/fill Find Insert Pop
Push Read Remove Resize Reverse Sort Write
Class (gb)
This class depicts a class used by the interpreter.
This class can be native, i.e. implemented in a component, or a class written in Gambas.
Smbolos
Mtodos
/comp/gb/class/load
Constantes
/comp/gb/class/constant
/comp/gb/class/event
/comp/gb/class/method
/comp/gb/class/property
/comp/gb/class/variable
Collection (gb)
Implementa una tabla hash (en la cual se pueden buscar rpidamente pares clave-valor), en la que los
elementos tienen una clave de tipo cadena y los valores son de tipo variant.
Cuando no hay nada asociado a una clave, se emplea el valor NULL. En consecuencia, asociar el valor
NULL con una clave, tiene el mismo efecto que eliminarlo de la coleccin.
El tamao de la tabla hash interna crece automticamente al insertar datos.
Smbolos