Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetActiveWorkspace - property of object Pm

Description:
Returns the reference to active PmWorkspace object..
Syntax:
GetActiveWorkspace As Object
Calling:
Set o = Pm.GetActiveWorkspace
Note:
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.
Example:
Obtaining the reference to active PmWorkspace object and opening the "/panel1" panel in the main frame.
Dim oWS
Set oWS = Pm.GetActiveWorkspace
If Not oWS Is Nothing Then
  oWS.OpenView "/panel1", "target:main;", ""
End If
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- GetActiveWorkspace
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice