MapKey()

Syntax

Key$ = MapKey(Map())
Description
Returns the key of the current map element.

Parameters

Map() The map to use.

Return value

Returns the key of the current element. If there is no current element, an empty string is returned.

Example

  NewMap Country.s()

  Country("US") = "United States"
  Country("FR") = "France"
  Country("GE") = "Germany"

  ForEach Country()
    Debug MapKey(Country())
  Next

See Also

ResetMap(), NextMapElement()

Supported OS

All

<- FreeMap() - Map Index - MapSize() ->