Name (PersistentObjectInfo function): Difference between revisions
m (→Usage notes) |
m (→Examples) |
||
Line 21: | Line 21: | ||
%persInfo = newFromGlobal('ABC') | %persInfo = newFromGlobal('ABC') | ||
printText {~} = {%persInfo:name}, {~} = {%persInfo: | printText {~} = {%persInfo:name}, {~} = {%persInfo:classDescription} | ||
end | end | ||
</p> | </p> | ||
The result is: | The result is: | ||
<p class="output">%persInfo:name = ABC, %persInfo: | <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
%name | A 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