SetMap()
Summary
Makes a map the current map.
Syntax
SetMap(string map_name)
| Argument | Contents |
|---|---|
| map_name | Name of map to set as current map |
Notes
-
Any function that accepts a map name as an argument uses the current map if the argument is left null.
-
SetMap() does not make the map window the current window. Use SetWindow() to change the currently active window.
-
The current layer changes to this map's current layer.
Example
SetMap("Map Number 1")
PrintMap()
SetMap("Map Number 2")
PrintMap()
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | The specified map does not exist |
See Also
| Function | Summary |
|---|---|
| GetMap() | Gets the name of the current map |
| SetLayer() | Sets the current layer (and the current view) |