GefObjects.Remove (method)

Removes the specified item from the collection.
Syntax: object.Remove IndexOrName
Optional IndexOrName As VARIANT -
Description: The GefObjects collection support access by index number or name. The objects are sorted by z-order (0 on the bottom, Count-1 on the top).


Sub Gefobjects_Remove()
    Dim oCimScr As GefScreen
    Dim oCimObjs As GefObjects
    Set oCimScr = CimGetScreen
    Set oCimObjs = oCimScr.Object.Objects
    oCimObjs.Remove 0
    oCimScr.Refresh False
End Sub