Removes the specified item from the collection. | |
Syntax: | object.Remove Index |
Parameters: | |
Description: | The Remove method removes a specified
action from the procedure. Example: Sub GefProcActions_Remove() Dim oCimObj As GefObject Dim oCimProceduresObj As
GefProcedures Dim oCimProcedObj As
GefProcedure Dim oCimProcAct As
GefProcActions Set oCimObj = CimGetObject Set oCimProceduresObj =
oCimObj.Procedures If oCimProceduresObj.Count > 0
Then Set
oCimProcedObj = oCimProceduresObj.Item(0) Set
oCimProcAct = oCimProcedObj.Actions oCimProcAct.Remove
0 MsgBox "The
first action was removed from the procedure" Else MsgBox "The
object does not have any procedures" End If End Sub |