Gambas Documentation - /comp/gb/class

/comp/gb/class

# 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.

This class is not creatable.
This class acts like a
Returns information about the symbol named Name in the specified class.
read-only
array.

Static methods | Constants
--- | ---
Loads a class identified by its name. Load | Indicates that a symbol is a constant. Constant Indicates that a symbol is an event. Event Indicates that a symbol is a method. Method Indicates that a symbol is a property. Property Indicates that a symbol is a variable. Variable

Properties | Methods
--- | ---

Returns the component this class belongs to.
Component
Returns the number of existing objects that are an instance of this class.
Count
Returns TRUE if the class is hidden.
Hidden
Returns the instance of an auto-creatable class.
Instance
Returns the name of the class.
Name
Returns TRUE if the class is native.
Native
Returns the parent of the class, i.e. the class from which it inherits some of its attributes.
Parent
Returns a collection of all the symbol names of a class.
Symbols

Return the hidden instance of a class.
AutoCreate
Return TRUE if a class has a specific symbol.
Exist
Instantiates the class.
New