_ListRemoveByColumnValue
Removes an element from the list of given value in given column
Lists.au3
_ListRemoveByColumnValue( $aList [, $vValue = 0 [, $nColumn = 0] ) |
parameters
$aList |
List array as handle |
$vValue |
Value to look for |
$nColumn |
Column number when 2D list |
return value
boolean value |
True = Element removed, False = Not a list or value not in the
column of the list or given column to large |
related
_ListAdd, _ListGet,
_ListGetElement, _ListRemove,
_ListRemoveByValue _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 |
$aCat = _listRemoveByColumnValue(
$aCats, "red", 1 ) |
; removes red siamese cat, first row (note that second column as
parameter 1 is given) |