Returns the workspace ID to which the current window belongs.
Syntax
Workspace_GetWorkspaceFromWindow(INT nWindow [, INT nTrace])
nWindow
Handle of the window.
nTrace
Indicates the trace level to record if an error results. This is an optional parameter.
Return Value
Returns the workspace ID
Example
Workspace_GetWorkspaceFromWindow(WinNumber())
Related Functions
Published June 2018