GefProcAction.Confirm (property)

Gets and sets whether the confirmation dialog is presented to the user before the action is executed.
Syntax: Boolean = object.Confirm
object.Confirm = Boolean
Description: The Confirm method is used to set or check if a prompt is used to confirm if the action is to be taken.


Sub GefProcAction_Confirm()
    Dim oCimObj As GefObject
    Dim oCimProceduresObj As GefProcedures
    Dim oCimProcedObj As GefProcedure
    Dim oCimProcActs As GefProcActions
    Dim oCimProcAct As GefProcAction
    Set oCimObj = CimGetObject
    Set oCimProceduresObj = oCimObj.Procedures
    If oCimProceduresObj.Count > 0 Then
        Set oCimProcedObj = oCimProceduresObj.Item(0)
        Set oCimProcActs = oCimProcedObj.Actions
        If oCimProcActs.Count > 0 Then
            Set oCimProcAct = oCimProcActs.Item(0)
            oCimProcAct.Confirm = True
            MsgBox "The first action was set for confirmation " & _
                "please run to check"
            MsgBox "There are no actions"
        End If
        MsgBox "The object does not have any procedures"
    End If
End Sub