Name (PersistentObjectInfo function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 6: Line 6:
<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>persObjList</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==
A simple example follows:
A simple example follows:

Revision as of 19:03, 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.
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

See also