GetActiveWorkspace - property of object Pm
GetActiveWorkspace As Object
Set o = Pm.GetActiveWorkspace
Property access for read only
Caution! The method can return Nothing, therefore the result should be tested, in order to avoid calling the method over non-existing reference.
The method is often used when working with multiple open workspaces simultaneously (PmWorkspace
objects), for example when using multiple displays (see How to use a PROMOTIC application on two or more displays
). The method returns PmWorkspace
, that has been worked on for the last time (i.e. the workspace that has the focus).
This method is not
functional for Web panels
Obtaining the reference to active PmWorkspace
object and opening the "/panel1"
panel in the main
Set oWS = Pm.GetActiveWorkspace