ResetMap()

Syntax

ResetMap(Map())
Description
Resets the current element of the specified map to be before the first element. This means no more current element. However, this is very useful to process all the elements by using NextMapElement().

Parameters

Map() The map to use.

Return value

None.

Example

  NewMap Country.s()

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

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

See Also

NextMapElement()

Supported OS

All

<- PushMapPosition() - Map Index