CopyMap()

Syntax

Result = CopyMap(SourceMap(), DestinationMap())
Description
Copy every elements of 'SourceMap()' into 'DestinationMap()'. If the two maps are not of the same type (native or structured) the copy will fail and 'Result' will be 0. Every elements previously found in 'DestinationMap()' will be deleted. After a successful copy, the two maps are identicals.

Example:

  NewMap Age()
  NewMap AgeCopy()
  
  Age("John")  = 15
  Age("Elise") = 30
  
  CopyMap(Age(), AgeCopy())
  
  Debug AgeCopy("John")
  Debug AgeCopy("Elise")

Supported OS

All

<- ClearMap() - Map Index - DeleteMapElement() ->