Name (PersistentObjectInfo function): Difference between revisions
mNo edit summary |
m (→Usage notes) |
||
Line 10: | Line 10: | ||
</table> | </table> | ||
==Usage notes== | ==Usage notes== | ||
==Examples== | |||
A simple example follows: | |||
<p class="code">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:setTime} | |||
end | |||
</p> | |||
The result is: | |||
<p class="output">%persInfo:name = ABC, %persInfo:setTime = 20110819105715221 | |||
</p> | |||
==See also== | ==See also== | ||
{{Template:PersistentObjectInfo:Name footer}} | {{Template:PersistentObjectInfo:Name footer}} |
Revision as of 18:34, 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. |
Usage notes
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:setTime} end
The result is:
%persInfo:name = ABC, %persInfo:setTime = 20110819105715221