CopyMapToOLE()
Summary
Updates an embedded OLE map.
Syntax
CopyMapToOLE(string map_name)
| Argument | Contents |
|---|---|
| map_name | The name of the map, or null for the current map |
Notes
-
CopyMapToOLE() updates a map object that is embedded in a container application.
-
CopyMapToOLE() is typically called in response to the File-Update menu command, which replaces the File-Save menu command for embedded maps. CopyMapToOLE() is not useful with maps that are not embedded.
Example
MenuItem "Update" do
CopyMapToOLE()
endItem
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The specified map is not an embedded OLE object |
See Also
| Function | Summary |
|---|---|
| CopyMapToClipboard() | Copies a map object and map picture to the Windows clipboard |
| DragMapToOLE() | Allows the user to drag and drop a map object to an OLE container application |