RemoveItem (Arraylist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (what was I thinking with those blank lines)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:Arraylist:RemoveItem subtitle}}
{{Template:Arraylist:RemoveItem subtitle}}
[[Category:Arraylist methods|RemoveItem function]]
<var>RemoveItem</var> removes the specified item from the <var>Arraylist</var>.
<!--DPL?? Category:Arraylist methods|RemoveItem function: Remove item from Arraylist-->
<p>
RemoveItem is a member of the [[Arraylist class]].
</p>


This callable method removes a specified item from the Arraylist.
==Syntax==
==Syntax==
{{Template:Arraylist:RemoveItem syntax}}
{{Template:Arraylist: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 Arraylist
<td>An, optional, numeric variable to return the number of items in the <var>Arraylist</var> after the specified item is removed.</td></tr>
after the specified item is removed.
<tr><th>al</th>
<dt><i>%arrayl</i>
<td>An <var>Arraylist</var> object. </td></tr>
<dd>An Arraylist object.
<tr><th>number</th>
<dt><i>number</i>
<td>A whole number greater than 0 to identify an <var class="term">al</var> item. If <var class="term">number</var> is greater than the number of items in the <var class="term">al</var>, or if it is less than or equal to zero, the request is cancelled.</td></tr>
<dd>A whole number greater than 0 to identify an ''%arrayl'' item.
</table>
If ''number'' is greater than the number of items
in the ''%arrayl'', or if it is less than or equal to zero,
the request is cancelled.


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

Latest revision as of 07:18, 11 March 2011

Remove item from Arraylist (Arraylist class)

RemoveItem removes the specified item from the Arraylist.

Syntax

[%count =] al:RemoveItem( number)

Syntax terms

%count An, optional, numeric variable to return the number of items in the Arraylist after the specified item is removed.
al An Arraylist object.
number A whole number greater than 0 to identify an al item. If number is greater than the number of items in the al, or if it is less than or equal to zero, the request is cancelled.

See also