Principal > comp > gb > object > new 
 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 
Object.New (gb)
Static Function New ( Class As String [ , Arguments As Array ] ) As Object

Instantiates the clase Class.

This routine works exactly like the NEW operator, except that the clase name is specified at runtime and not at compile time.

If you want to specify the observer that will receives all the events generated by the newly created objeto, you must use the Object.Attach static método.

Ejemplo

hButton = Object.New("Button", [hParent])
'has exactly the same effect as:
hButton = NEW Button(hParent)

As the class is specified by name, only exported classes can be instanciated.

Véase también

Gestión de Objetos y Clases, Class.New