SetWindowData()

Summary

Stores an array with a window.

Changes

Added to Version 5.0.

Syntax

SetWindowData(string window_name, array data)

Argument Contents
window_name String of the form "window type|window name"
data The array to be stored

Notes

  • A copy of the array is stored with the window, so that if the original array changes this does not affect the stored data.

Example

folder = RunMacro("G30 Tutorial Folder")
OpenWorkspace(folder + "NELayers.wrkz", null)
mp1 = GetMap()
SetWindowData("Map|" + mp1, {1, 2, 3})
info = GetWindowData("Map|" + mp1)

Error Codes

Error Type Meaning
NotFound There is no window of the designated type and name

See Also

Function Summary
GetWindowData() Retrieves an array stored with a window