Name (PersistentObjectInfo function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 21: Line 21:


%persInfo = newFromGlobal('ABC')                                                                     
%persInfo = newFromGlobal('ABC')                                                                     
printText {~} = {%persInfo:name}, {~} = {%persInfo:setTime}
printText {~} = {%persInfo:name}, {~} = {%persInfo:classDescription}
end
end
</p>
</p>


The result is:
The result is:
<p class="output">%persInfo:name = ABC, %persInfo:setTime = 20110819105715221
<p class="output">%persInfo:name = ABC, %persInfo:classDescription = 20110819105715221
</p>
</p>


==See also==
==See also==
{{Template:PersistentObjectInfo:Name footer}}
{{Template:PersistentObjectInfo:Name footer}}

Revision as of 18:38, 19 August 2011

Name of persistent object (PersistentObjectInfo class)

[Introduced in Sirius Mods 7.8]


Syntax

%name = persObjInfo:Name

Syntax terms

%nameA string variable to contain the global or session name associated with the method object.
persObjList A PersistentObjectInfo object variable.

Examples

A simple example follows:

b %i is float %persInfo is object persistentObjectInfo %sl is object stringlist %sl = list('alpha', 'beta', 'ceta') %(Object):SetGlobal('ABC', %sl) %persInfo = newFromGlobal('ABC') printText {~} = {%persInfo:name}, {~} = {%persInfo:classDescription} end

The result is:

%persInfo:name = ABC, %persInfo:classDescription = 20110819105715221

See also