RemoveItem (NamedArraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Remove item from NamedArraylist<section end=dpl_desc/></b></span> [[Category:NamedArraylist methods|RemoveIt...")
 
m (update syntax terms to match corrected template)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b><section begin=dpl_desc/>Remove item from NamedArraylist<section end=dpl_desc/></b></span>
{{Template:NamedArraylist:RemoveItem subtitle}}
[[Category:NamedArraylist methods|RemoveItem function]]
 
<!--DPL?? Category:NamedArraylist methods|RemoveItem function: Remove item from NamedArraylist-->
<var>RemoveItem</var> removes the item, that has the specified subscript name, from the <var>NamedArraylist</var>.
<p>
RemoveItem is a member of the [[NamedArraylist class]].
</p>


This callable function removes from the NamedArraylist
the item that has the specified subscript name.
==Syntax==
==Syntax==
  [%num =] %namrayl:RemoveItem(name)
{{Template:NamedArraylist:RemoveItem syntax}}
===Syntax Terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt><i>%num</i>
<tr><th>%count</th>
<dd>A numeric variable to contain the number of items in the NamedArraylist
<td>An, optional, numeric variable to contain the number of remaining items in the <var>NamedArraylist</var> after the specified item is removed. </td></tr>
after the specified item is removed.
<tr><th>nal</th>
<dt><i>%namrayl</i>
<td>A <var>NamedArraylist</var> object.</td></tr>
<dd>A NamedArraylist object.
<tr><th>string</th>
<dt><i>name</i>
<td>A string that serves as a subscript to identify a <var class="term">nal</var> item to be removed.</td></tr>
<dd>A string that serves as a subscript to identify a ''%namrayl'' item.
</table>


If no item in ''%namrayl'' has the specified subscript name,
==Usage Notes==
the request is cancelled,
<ul><li>If <var>RemoveItem</var> cannot find an item in <var>NamedArraylist</var> with the specified subscript name, the request is cancelled, regardless of the setting of [[UseDefault (NamedArraylist property)|UseDefault]].
regardless of the setting of [[UseDefault (NamedArraylist property)|UseDefault]].
</ul>


</dl>
==See also==
{{Template:NamedArraylist:RemoveItem footer}}

Latest revision as of 22:39, 18 March 2011

Remove item from NamedArraylist (NamedArraylist class)


RemoveItem removes the item, that has the specified subscript name, from the NamedArraylist.

Syntax

[%count =] nal:RemoveItem( string)

Syntax terms

%count An, optional, numeric variable to contain the number of remaining items in the NamedArraylist after the specified item is removed.
nal A NamedArraylist object.
string A string that serves as a subscript to identify a nal item to be removed.

Usage Notes

  • If RemoveItem cannot find an item in NamedArraylist with the specified subscript name, the request is cancelled, regardless of the setting of UseDefault.

See also