GlobalList (Object function)

From m204wiki
Jump to navigation Jump to search

Get list of global objects (Object class)

[Introduced in Sirius Mods 7.8]


%persObjList = %(Object):GlobalList[( [matchString])]

Syntax terms

%persObjListAn Arraylist of Object PersistentObjectInfo object variable.
%(Object) The class name in parentheses denotes a shared method. GlobalList can also be invoked via an Object class object variable, which may be Null.
matchString An optional, case-sensitive, pattern-matching string that identifies the name(s) of the global(s) whose information is to be returned to %persObjList. The default if no string is provided is to return the information of all global objects.

Usage notes

GlobalList is also a shared method in the PersistentObjectInfo class. Consequently:

  • Both of these statements are valid:

    %persInfoList = %(object):globalList %persInfoList = %(persistentObjectInfo):globalList

  • You can use the Object class GlobalList method the same way the the PersistentObjectInfo class GlobalList method is used in the example in Using GlobalList or SessionList.


See Using system class methods to access global and session objects and see the PersistentObjectInfo class GlobalList Examples.

See also