RFERROR.SetToneDefault

boolean SetTonedefault(BSTR pszToneName)

Function SetToneDefault(pszToneName As String) As Boolean

Set the default tone played when an error is displayed.

Return value
True=Successful, False=error, connection lost.

Parameters

pszToneName
    Existing tone name to play.

Remarks
    The tone must exists.
    The default tone is "error" in DOS terminals and "critical" in WCE terminals.

Example
Public wsRfError As New RFERROR
...
wsRfError.SetToneDefault "critical"
wsRfError.ClearError    ' Clean any previous error message
wsRfError.SetErrorLine " User Error ", 0
wsRfError.SetErrorLine " Message ", 1
wsRfError.Display 0     ' No time-out, CLR by user

See also    RFERROR, ClearError