NextMapElement()

语法

Result = NextMapElement(Map())
概要
Moves from the current element to the next element in the specified map, or onto the first element if ResetMap() was previously called.

参数

Map() The map to use.

返回值

Returns nonzero if the next element was set and zero if there is no next element. The value returned is a pointer to the new element data.

示例

  NewMap Country.s()

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

  ResetMap(Country())
  While NextMapElement(Country())
    Debug Country()
  Wend

参阅

ResetMap(), MapKey()

已支持操作系统

所有

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