DeepCopy (ScreenField function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
{{Template:ScreenField:DeepCopy subtitle}}
{{Template:ScreenField:DeepCopy subtitle}}


This method returns a ScreenField object that is a deep copy of the method object. Since a ScreenField cannot exist without its underlying Screen, however, a ScreenField is deep copyable only, and no Copy method exists for a ScreenField. For more information about copyability, see “[[Copying Objects]]”.
This method returns a ScreenField object that is a deep copy of the method object. Since a ScreenField cannot exist without its underlying Screen, however, a ScreenField is deep copyable only, and no Copy method exists for a ScreenField. For more information about copyability, see “[[Copying Objects]]”.
==Syntax==
==Syntax==
{{Template:ScreenField:DeepCopy syntax}}
{{Template:ScreenField:DeepCopy syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt>%outsfield
<tr><th>%outsfield</th>
<dd>A declared ScreenField object.
<td>A declared ScreenField object. </td></tr>
<dt>%sfield
<tr><th>%sfield</th>
<dd>A reference to an instance of a ScreenField object.
<td>A reference to an instance of a ScreenField object.</td></tr>
</dl>
</table>


==Usage notes==
==Usage notes==

Revision as of 20:16, 18 March 2011

Return a deep copy of a screenfield object (ScreenField class)


This method returns a ScreenField object that is a deep copy of the method object. Since a ScreenField cannot exist without its underlying Screen, however, a ScreenField is deep copyable only, and no Copy method exists for a ScreenField. For more information about copyability, see &#x201C;Copying Objects&#x201D;.

Syntax

%outSfield = sfield:DeepCopy

Syntax terms

%outsfield A declared ScreenField object.
%sfield A reference to an instance of a ScreenField object.

Usage notes

The method object (%screen) may be null. The output of a copy of a null object is a null object.

See also