Tests if a key is in the key map
Lists.au3 _MapKeyInMap( $aMap [, $vKey = 0 [, $bCaseSensitive = False ]] ) |
$aMap | Key map array as handle |
$vKey | Key to test |
$bCaseSensitive | True = case sensitive for strings, False = case insensitive |
integer value | > -1 position in key map, -1 = not in key map or not a key map |
_MapAdd, _MapValueByKey, _MapKeyByValue, _MapRemoveByKey, _MapRemoveByValue, _MapGetKey, _MapGetValue, _MapValueInMap
Local $aAddress = _MapCreate()
_MapAdd( $aAddress, "street", "Scary avenue" )
_MapAdd( $aAddress, "town", "Ghost town" )
_MapAdd( $aAddress, "state", "Night state" )
....
If _MapKeyInMap( $aAddress, "street" )
> -1 Then _MapRemoveByKey(
$aAddress, "street" )