Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Terminal Object / Dial2 Method
The phone number to dial. The string can contain any valid modem dialing characters, such as commas (to allow dialing to pause for two seconds per comma) and hyphens and parentheses (used as separators for better readability). The string should not include any AT commands or dialing prefix commands; these settings should be made in the Dialing Options dialog box from the Connection Setup dialog box.
Description to be displayed in the Dialing In Progress dialog box. If this option is omitted, only the phone number appears in the dialog box.
String to be sent to the modem before dialing. If omitted, Reflection uses the default initialization string.
Specifies the amount of time to wait for the host to confirm the connection. The string is specified in HH:MM:SS.hh format. A time string of "0" causes Reflection to wait indefinitely. If this is empty (""), the default timeout (60 seconds) is used.
Specifies the number of times to redial if the number is busy or does not answer. Default value should be one retry.
Specifies the amount of time to wait before redialing. The string is specified in HH:MM:SS.hh format. If this argument is empty (""), the default timeout is used (120 seconds).
A speakerOption value that specifies the speaker mode. The default is Dialing. This is a SpeakerOption Enumeration value that specifies the speaker mode. The default is Dialing.
A SpeakerVolumeOption that specifies the speaker volume. The default is Medium.  This is a SpeakerVolumeOption Enumeration value.
If true, the modem speaker is turned off after the first dialing attempt. If false (default) or omitted, the modem speaker remains set to the SpeakerMode for each dialing attempt.
If true, Reflection ignores modem initialization string errors. If false, these errors are displayed in a message box.
In This Topic
    Dial2 Method
    In This Topic
    Dials a modem. This method is only valid if Reflection is set to use the old modem dialer (UseModemDialerV5 = true).
    Syntax
    expression.Dial2( _
       ByVal phoneNumber As String, _
       ByVal description As String, _
       ByVal initString As String, _
       ByVal answerTimeout As String, _
       ByVal retryTimes As Integer, _
       ByVal retryInterval As String, _
       ByVal speakerOption As SpeakerOption, _
       ByVal speakerVolume As SpeakerVolumeOption, _
       ByVal speakerOffAfterRedial As Boolean, _
       ByVal ignoreModemErrors As Boolean _
    ) 
    where expression is a variable that represents a Terminal Object

    Parameters

    phoneNumber
    The phone number to dial. The string can contain any valid modem dialing characters, such as commas (to allow dialing to pause for two seconds per comma) and hyphens and parentheses (used as separators for better readability). The string should not include any AT commands or dialing prefix commands; these settings should be made in the Dialing Options dialog box from the Connection Setup dialog box.
    description
    Description to be displayed in the Dialing In Progress dialog box. If this option is omitted, only the phone number appears in the dialog box.
    initString
    String to be sent to the modem before dialing. If omitted, Reflection uses the default initialization string.
    answerTimeout
    Specifies the amount of time to wait for the host to confirm the connection. The string is specified in HH:MM:SS.hh format. A time string of "0" causes Reflection to wait indefinitely. If this is empty (""), the default timeout (60 seconds) is used.
    retryTimes
    Specifies the number of times to redial if the number is busy or does not answer. Default value should be one retry.
    retryInterval
    Specifies the amount of time to wait before redialing. The string is specified in HH:MM:SS.hh format. If this argument is empty (""), the default timeout is used (120 seconds).
    speakerOption
    A speakerOption value that specifies the speaker mode. The default is Dialing. This is a SpeakerOption Enumeration value that specifies the speaker mode. The default is Dialing.
    speakerVolume
    A SpeakerVolumeOption that specifies the speaker volume. The default is Medium.  This is a SpeakerVolumeOption Enumeration value.
    speakerOffAfterRedial
    If true, the modem speaker is turned off after the first dialing attempt. If false (default) or omitted, the modem speaker remains set to the SpeakerMode for each dialing attempt.
    ignoreModemErrors
    If true, Reflection ignores modem initialization string errors. If false, these errors are displayed in a message box.
    See Also