The Connect method opens a connection with the host application using previously defined connection properties. The following properties must have been defined before attempting the Connect method otherwise the connection fails:
Property | Description |
---|---|
ApplicationPrefix | To define the Java class application prefix |
ApplicationName | To define the Java class application name |
TCP/IP Address | To define the IP address of the Agile Business Suite server |
ViewName | To define the Agile Business Suite System to be used |
Syntax
Object.Connect
<Object> is an expression that evaluates to an instance of a Component Enabler connection object.
Returns
A response code indicating the result of the connection attempt.
Example
Dim Result as ResponseCode’ActiveLINC Response code ’Create new instance of LINCApp interface object Set LINCApp = New ActiveLINCConnection ’set up connection parameters With LINCApp .ApplicationName = "sample2r1" .PackagePrefix = "com.unisys" .BundleName = "all" .IPAddress = "LINCHOST" .PortNo = 2889 .ViewName = "SAMPLE" End With ’Connect Result = LINCApp.Connect ’Check we connected OK. If not display the error number If Result <> alOK Then MsgBox "Cannot connect. Error code is " & Str$(Result) End If