IupGetGlobal

IUP - Portable User Interface

IupGetGlobal

Verifies an attribute’s value in the global environment.

Parameters/Return

char *IupGetGlobal(char *a); [in C]
IupGetGlobal(a: string) -> value: string [in IupLua3]
iup.GetGlobal(a: string) -> value: string [in IupLua5]

a: name of the attribute.

This function returns the attribute’s value. If the attribute does not exist, NULL (nil in Lua) is returned.

Note

This function’s return value is not necessarily the same one used by the application to define the attribute’s value. 

The subsequent call to the IupGetGlobal function may change the contents of the previously returned pointer, as this is an internal IUP buffer. The user is in charge of storing the value before calling IupGetGlobal again. This pointer must not be freed either.

See Also

IupGetAttribute, IupSetGlobal