Connect Method

Establish a connection with a remote server.

Syntax

object.Connect([EntryName As Variant])

Remarks

The Connect method establishes a dial-up networking connection with a service provider using the specified phonebook entry.

The optional EntryName argument specifies the name of the phonebook entry to use to establish the connection. If this argument is not provided, the value of the PhoneEntry property is used. If the PhoneEntry property has not been set, then the current values of the PhoneNumber, UserName, UserDomain, and Password properties will be used to create a temporary phonebook entry.

Return Value

A value of zero is returned if the connection was successful. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

See Also

Disconnect Method, CallbackNumber Property, Password Property, PhoneEntry Property, PhoneNumber Property, UserName Property, UserDomain Property