_MapGetKey

Gets a key of a given position, zero based

Lists.au3
_MapGetKey( $aMap [, $nPosition = 0 ] )

parameters

$aMap Key map array as handle
$nPosition Position in key map

return value

value Key of given position

@error

1 Not a key map
2 Key map is empty, no values
3 Given position greater than key map size

related

_MapAdd, _MapValueByKey, _MapKeyByValue, _MapRemoveByKey, _MapRemoveByValue, _MapGetValue, _MapKeyInMap, _MapValueInMap

example

If _MapSize( $aMyMap ) > 5 Then $myKey = _MapGetKey( $aMyMap, 5 ) ; get 6th key