GetWindowData()
Summary
Retrieves an array stored with a window.
Changes
Additional classes added for Version 5.0.
Syntax
array = GetWindowData(string window_name)
| Argument | Contents |
|---|---|
| window_name | String of the form "window type|window name" |
Returns
A copy of the array stored in the window, or null if no array has been stored.
Notes
If window_name is null, gets the data for the current window.
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 |
|---|---|
| SetWindowData() | Stores an array with a window |