MapKey()

语法

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

参数

Map() The map to use.

返回值

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

示例

  NewMap Country.s()

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

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

参阅

ResetMap(), NextMapElement()

已支持操作系统

所有

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