_ListRemove
Removes an element from the list at given position
Lists.au3
_ListRemove( $aList [, $nPosition = 0] ) |
parameters
| $aList |
List array as handle |
| $nPosition |
Position in the list |
return value
| boolean value |
True = Element removed, False = Not a list or given position
larger than list size |
related
_ListAdd, _ListGet,
_ListGetElement, _ListRemoveByValue,
_ListRemoveByColumnValue _ListValueInList,
_ListValueInListColumn
example
| Local $aCats = _ListCreate(2) |
; 2 columns list |
| _ListAdd( $aCats, "siamese", "red" ) |
; add red siamese cat |
| _ListAdd( $aCats, "balinese", "white" ) |
; add white balinese cat |
| _listRemove(
$aCats, 0 ) |
; remove red siamese cat, first row |