Attempts to establish or end a dial up connection.
Declaration
function DialUp (varConnectionName As Variant,
intAction As Integer) As Variant
Parameters
varConnectioName
The name of the phonebook entry to dial.
intAction
If set to “0”, AutoMate™ will attempt to disconnect the connection. If set to “1”, AutoMate™ will attempt to make a connection using varConnectionName.
Description
The DialUp method attempts to establish or end a dial-up session by dialing the phonebook entry pointed to by varConnectionName. The phonebook entry must already exist in your Dial-Up Networking preferences before running the step.
If intAction is set to “0”, AutoMate™ will attempt to find a connection already made using varConnectionName and, if found, will try to disconnect the session. If this can be done successfully, the step returns “1.” Otherwise, it returns “0.”
If intAction is set to “1”, AutoMate™ will attempt to start a dial-up session using the parameters of the phonebook entry varConnectionName. If the connection is established, the method returns “1.” Otherwise, it will return “0.”