RFTONE.DeleteToneFile

boolean DeleteToneFile(BSTR pszFileName)

Function DeleteToneFile(pszFileName As String) As Boolean

Deletes a Tone file in the Client.

Return value
True=successful, false=error, unknown file, RF link lost.

Parameters

pszFileName
    The name of the tone file (up to 8 characters).

Remarks
The name must contain legal characters for MS-DOS filenames. Do not include dots (.) and other special characters (* , $ \ : etc).

Example
Public wsRfTone As New RFTONE

Public Sub Main()
   ' Storing an "error" tone
   wsRfTone.ClearTones ' Clear the current tone
   wsRfTone.AddTone 2800, 500 ' add tone frequency and duration
   wsRfTone.AddTone 1400, 500
   wsRfTone.AddTone 2800, 500
   wsRfTone.AddTone 1400, 500
   ' Warning, give a valid DOS file Name (8.3) W/O extension
   wsRfTone.StoreTone "MyTone" ' Store tone as a file
   wsRfTone.PlayTone "MyTone"
   wsRfTone.DeleteToneFile "MyTone"
End Sub

See also    RFTONE, StoreTone