NewFromGlobal (PersistentObjectInfo function)

From m204wiki
Revision as of 19:16, 27 August 2014 by JAL (talk | contribs) (→‎Syntax terms)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Get info about global object (PersistentObjectInfo class)

[Introduced in Sirius Mods 7.8]


Syntax

%persObjInfo = [%(PersistentObjectInfo):]NewFromGlobal( name)

Syntax terms

%persObjInfoA PersistentObjectInfo object variable.
[%(PersistentObjectInfo):] This optional specification of the class in parentheses denotes a virtual constructor. See Usage notes, below, for more information about invoking NewFromGlobal.
name A string that identifies the name of the global variable whose information is returned to %persObjInfo.

Usage notes

  • As described in Virtual Constructor methods, NewFromGlobal can be invoked with no method object, with an explicit class specification, or with an object variable of the class, even if that object is Null:

    %persObjInf = NewFromGlobal('PART') %persObjInf = %(PersistentObjectInfo):NewFromGlobal('PART') %persObjInf = %persObjInf:NewFromGlobal('PART')

Examples

For an example, see the Name method Examples.

See also