RunConnect

Description

Opens the specified session and establishes a connection with the host.

Syntax

ret = RunConnect (sessionname, timeout, visible)

Parameters

ret

String, output

 

The HLLAPI short name which ranges from uppercase 'A' to 'Z'.

 

 

sessionname

String, input

 

Name of session to open, including full path.

 

 

timeout

Integer, input

 

The number of seconds to wait before indicating a time out condition.

 

 

visible

Integer, input

 

0 = Not visible
1 = Visible

Remarks

This is a PASSPORT function.

For PASSPORT PC TO HOST, the sessionname parameter should specify path and file name of the session profile to open such as "C:\Program Files\PASSPORT\Passport.zws".

For PASSPORT WEB TO HOST, the sessionname parameter must include the URL for the session profile such as "http://servername/pec/Ecomes.asp?sessionprofile=3270dsp/Sessions/passport".

Example

Sub ZMain()
RunConnect "c:/program files/passport/passport.zws", 10, 1
End Sub