Name
moai.Get -- get value of a MOAI object attribute
Synopsis
r = moai.Get(id$, attr$)
Function
This function can be used to retrieve the current value of the attribute attr$ in the MOAI object specified in id$. Attribute names and object IDs are case insensitive, i.e. it does not matter if you use upper or lower case characters for them.

The attributes that you can use with this function depend on the class of the specified MOAI object. Have a look at the class reference to see what attributes are supported by the different MOAI classes. In order to use an attribute with this function, it needs to have an applicability of "G". Attributes of Area class and MOAI class can be used on almost all other classes because the Area and MOAI classes act as superclasses for most of the other classes.

Inputs
id$
identifier of MOAI object to query
attr$
attribute whose value should be retrieved
Results
r
current attribute value
Example
DebugPrint(moai.Get("my_listview", "active"))
The code above returns the index of the currently active entry in the listview that has the identifier "my_listview" by querying the Listview.Active attribute.

Show TOC