Removes an element from the list of given value, value can be any column of the list
Lists.au3 _ListRemoveByValue( $aList [, $vValue = 0] ) |
$aList | List array as handle |
$vValue | Value to look for |
boolean value | True = Element removed, False = Not a list or value not in the list |
_ListAdd, _ListGet, _ListGetElement, _ListRemove, _ListRemoveByColumnValue _ListValueInList, _ListValueInListColumn
Local $aCats = _ListCreate(2) | ; 2 columns list |
_ListAdd( $aCats, "siamese", "red" ) | ; add red siamese cat |
_ListAdd( $aCats, "balinese", "white" ) | ; add white balinese cat |
_listRemoveByValue( $aCats, "red" ) | ; removes red siamese cat, first row as "red" is found in second column |
_listRemoveByValue( $aCats, "balinese" ) | ; removes white balinese cat, first row as "balinese" is found in first column |