Connect to IBM Hosts
You can use macros to establish connections to IBM hosts.
The following example configures a Telnet connection and then uses the Connect method to open that connection.
Sub MakeMyIBMConnection () With ThisIbmTerminal
If .IsConnected = False Then
.HostAddress = "MyIbmHost"
.Connect
Else
MsgBox ("There is already a connection open.")
End If End With End Sub
Note: This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Attachmate provides this sample code "AS IS" with no warranties.
|