NextMapElement()

Syntax

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

Parameters

Map() The map to use.

Return value

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.

Example

  NewMap Country.s()

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

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

See Also

ResetMap(), MapKey()

Supported OS

All

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