GefScreen.Object (read-only property)

Gets the GefObject representing the screen.
Syntax: Set GefObject = object.Object
Description: The Objects property of this object contains all of the objects in the screen. The Variables property of this object returns the screen variables.

Certain properties of this GefObject cannot be modified. For example, the GefObject.Left property will always be 0.


Sub GefScreen_Object()
    Dim oCimScr As GefScreen
    Dim oCimScrObj As GefObject
    Set oCimScr = CimGetScreen
    Set oCimScrObj = oCimScr.Object
    MsgBox "The name of the screen object is " & """" & oCimScrObj.Name & """"
End Sub