RemoveItem (Arraylist function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 1: | Line 1: | ||
{{Template:Arraylist:RemoveItem subtitle}} | {{Template:Arraylist:RemoveItem subtitle}} | ||
[[Category:Arraylist methods|RemoveItem function]] | [[Category:Arraylist methods|RemoveItem function]] | ||
<!--DPL?? Category:Arraylist methods|<var>RemoveItem</var> function: Remove item from Arraylist--> | <!--DPL?? Category:<var>Arraylist</var> methods|<var>RemoveItem</var> function: Remove item from <var>Arraylist</var>--> | ||
<p> | <p> | ||
<var>RemoveItem</var> is a member of the [[Arraylist class]]. | <var>RemoveItem</var> is a member of the [[Arraylist class]]. | ||
</p> | </p> | ||
This callable method removes a specified item from the Arraylist. | This callable method removes a specified item from the <var>Arraylist</var>. | ||
==Syntax== | ==Syntax== | ||
{{Template:Arraylist:RemoveItem syntax}} | {{Template:Arraylist:RemoveItem syntax}} | ||
Line 12: | Line 12: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th><i>%num</i></th> | <tr><th><i>%num</i></th> | ||
<td>A numeric variable to contain the number of items in the Arraylist after the specified item is removed. </td></tr> | <td>A numeric variable to contain the number of items in the <var>Arraylist</var> after the specified item is removed. </td></tr> | ||
<tr><th><i> | <tr><th><i><var class="term">al</var></i></th> | ||
<td>An Arraylist object. </td></tr> | <td>An <var>Arraylist</var> object. </td></tr> | ||
<tr><th><i>number</i></th> | <tr><th><i>number</i></th> | ||
<td>A whole number greater than 0 to identify an '' | <td>A whole number greater than 0 to identify an ''<var class="term">al</var>'' item. If ''number'' 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> | ||
</table> | </table> |
Revision as of 02:29, 20 January 2011
Remove item from Arraylist (Arraylist class)
RemoveItem is a member of the Arraylist class.
This callable method removes a specified item from the Arraylist.
Syntax
[%count =] al:RemoveItem( number)
Syntax terms
%num | A numeric variable to contain 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. |