RFFILE.RFDeleteFile

boolean RFDeleteFile(BSTR pszFileName)

Function RFDeleteFile(pszFileName As String) As Boolean

Deletes a file in the WS Client.

Return value
True=successful, False=error, no file, RF link lost, etc.

Parameters

pszFileName
    Name of the file to delete.

Remarks

Example
Public wsRfFile As New RFFILE
Dim iIdx As Integer
Dim sBuff As String
...
If wsRfFile.RFListFiles("*.TXT") < 0 Then
    GoTo EndProgram ' RF error ...
End If

' Get the name of each "TXT" file and delete it
For iIdx = 0 To wsRfFile.RFFileCount - 1
    sBuff = wsRfFile.RFFileName(iIdx)
    wsRfFile.RFDeleteFile sBuff    ...
Next iIdx

See also    RFFILE, RFListFiles, RFFileCount