Execute Method (IbmTerminal)
Execute a given action. The actions you can execute are defined in InputMapActionID.
Parameters
- action
- An InputMapAction object.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. |
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