AutoMate Example
NOTE: This method has been deprecated. Use the DialUp method instead.
Attempts a dial-up connection using a specified phonebook entry, and returns a handle to the connection on success.
Declaration
Function RASConnect (PhonebookEntry As Variant) As Integer
Description
Use RASConnect to attempt to establish a dial-up connection using the phonebook entry supplied in PhonebookEntry.
On success, RASConnect returns a handle to a RAS object, which can be used in subsequent FTP related calls such as FTPUpload. RASConnect returns “0” if the connection fails. In this case, use RASLastErrorCode and RASLastErrorText for information about why the method failed.