Home > dev > api > name > gb.currentcomponent 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
GB.CurrentComponent
char *GB.CurrentComponent ( void )

This function returns the name of the current component.

The current component is the component where the current class executed by the interpreter was declared. It is always a component written in Gambaso!

If there is no current component, i.e. if the current executed class is part of the project, then a void string is returned.

Use this function if you need to store some data depending on the component. For example, the Picture class uses this feature to have one Picture cache by component.

See also

Component Management