GefObject.SrcPath (read-only property)

Gets the path of the screen file that contains the object definition.
Syntax: String = object.SrcPath
Description: This property returns the directory of the screen in which the object resides.

For linked objects, the source of a link container, it returns the directory of the screen where link container's source object resides.

For the link container itself, the property returns the directory of the screen in which the link container resides.

Example:

Sub GefObject_SrcPath()
    
    Dim oCimObj As GefObject
    
    Set oCimObj = CimGetObject
    
    MsgBox "The current screen is located in " & oCimObj.SrcPath
    
End Sub