Name (PersistentObjectInfo function): Difference between revisions
m (→Usage notes) |
mNo edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
{{Template:PersistentObjectInfo:Name syntax}} | {{Template:PersistentObjectInfo:Name syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%name</th><td>A string variable to contain the global or session name associated with the method object. </td></tr> | <tr><th>%name</th><td>A string variable to contain the global or session name associated with the method object. </td></tr> | ||
<tr><th> | |||
<tr><th>persObjInfo</th> | |||
<td>A <var>PersistentObjectInfo</var> object variable.</td></tr> | <td>A <var>PersistentObjectInfo</var> object variable.</td></tr> | ||
</table> | </table> | ||
==Examples== | ==Examples== | ||
Line 23: | Line 24: | ||
%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 = System:Stringlist | ||
</p> | </p> | ||
==See also== | ==See also== | ||
{{Template:PersistentObjectInfo:Name footer}} | {{Template:PersistentObjectInfo:Name footer}} |
Latest revision as of 20:17, 23 July 2014
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. |
---|---|
persObjInfo | 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 = System:Stringlist