Removes a key-value pair by value from the given key map
| Lists.au3 _MapRemoveByValue( $aMap, $vValue [, $bCaseSensitive = False ]] ) |
| $aMap | Key map array as handle |
| $vValue | Value to use |
| $bCaseSensitive | True = case sensitive for strings, False = case insensitive |
| value | Key belonging to value |
| 1 | Not a key map |
| 2 | Key map is empty, no values |
| 3 | Value not found |
_MapAdd, _MapValueByKey, _MapKeyByValue, _MapRemoveByKey, _MapGetKey, _MapGetValue, _MapKeyInMap, _MapValueInMap
Local $aAddress = _MapCreate()
_MapAdd( $aAddress, "street", "Scary avenue" )
_MapAdd( $aAddress, "town", "Ghost town" )
_MapAdd( $aAddress, "state", "Night state" )
....
If _MapValueInMap( $aAddress, "Scary
avenue" ) > -1 Then _MapRemoveByValue(
$aAddress, "Scary avenue" )