Connect Method

Makes a connection to a client.

Syntax

NSChannelMgr.Connect( [Machine] )

Parameters

Machine

A String value specifying the computer name for the connection.

Return Values

Returns an ActiveX HRESULT error code.

Example

On Error Resume Next
NSChannelMgr1.Connect "LocalHost"
If Err.Number = 0 then
  MsgBox "Connected to LocalHost"
Else
  MsgBox "Connection failed: " & Err.Description
End If
© 1996-1998 Microsoft Corporation. All rights reserved.