Reflection 2008 makes modem connections using the modem configured from the Windows Control Panel.
Note: The following procedure uses the OpenSystems ConnectionType and ConnectionSettingsModem object, and is relevant only for OpenSystems terminal sessions.
The following example configures a modem connection. The line continuation character, an underscore preceded by a space is used here to break up long lines of code.
Sub ModemConnection ()
With ThisTerminal
.ConnectionType=ConnectionTypeOption.ConnectionTypeOption_Modem
.ConnectionSettingsModem.ModemUseDialingRules=True
.ConnectionSettingsModem.ModemPhoneNumber="999-1234"
.ConnectionSettingsModem.ModemAreaCode="555"
.ConnectionSettingsModem.ModemCountryName="United States " _
& "of America (1)"
.ConnectionSettingsModem.ModemLocation="Default Location"
.Connect
End With
End Sub
Note: If you used Reflection version 6.0 or earlier, you may have developed Reflection Basic scripts (.rbs) that use the Reflection modem dialer instead of the Control Panel Modem. To configure Reflection 2008 to use the old modem dialer, set the UseModemDialerV5 property to True. If you use the old modem dialer, you can use the Dial method to start the modem dialer (which initializes the modem and dials). The Dial method supports a number of arguments to specify a phone number, an initialization string to send to the modem, and others.