Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmTerminal Object / Execute Method
The action to be executed.This InputMapAction Object contains the action to be executed.
Example
In This Topic
    Execute Method (IbmTerminal)
    In This Topic
    Execute a given action. Actions possible is defined in InputMapActionID.
    Syntax
    expression.Execute( _
       ByVal action As InputMapAction _
    ) As ReturnCode
    where expression is a variable that represents a IbmTerminal Object

    Parameters

    action
    The action to be executed.This InputMapAction Object contains the action to be executed.

    Return Value

    One of the following ReturnCode enumeration values.

    Member Description
    Cancelled Cancelled.
    Error Error.
    PermissionRequired Permission is required.
    Success Success.
    Timeout Timeout condition.
    Truncated The text is truncated.

    Example
    This example opens a Web page in an external Web browser.
    Sub ExecuteAnAction()
     
        Dim action As InputMapAction
        Dim control As UiControl
        Dim rcode As ReturnCode
        Dim macro As OpenUrlActionLocationOption
     
        'Create a new InputMapAction object for the action
        Set action = New InputMapAction
                             
        'Set up the action to display a web page
        action.ActionId = InputMapActionID_OpenURLAction
     
        'Add the The URL string value parameter
        action.AddParameter "www.microfocus.com"
     
        'Look for the macro in this Session project
        action.AddParameterAsInteger OpenUrlActionLocationOption_ExternalBrowser
        
        'Open the Web page
        rcode = ThisIbmTerminal.Execute(action)
     
    End Sub
    See Also