Skip to main content

GetUserData

GetUserData (winName, objID, userdataName)

The GetUserData function returns a string containing the user data for a window, subwindow, graph trace or control. The return string will be empty if no user data exists.

You set user data on a window or subwindow using the userData keyword of the SetWindow operation. You set it on a graph trace using the userData keyword of the ModifyGraph operation. You set it on a control using the userData keyword of the various control operations.

Parameters

winName may specify a window or subwindow name. Use "" for the top window.

When identifying a subwindow with winName, see Subwindow Syntax for details on forming the window hierarchy.

objID is a string specifying the name of a control or graph trace. Use "" for a window or subwindow.

userdataName is the name of the user data or "" for the default unnamed user data.

See Also

ControlInfo, GetWindow, SetWindow