RFFILE.RFFileName

BSTR RFFileName(short nDex)

Function RFFileName(nDex As Integer) As String

The name of the file in the reduced or extended filename array.

Return value
    The name of the file.

Parameters

nDex
    Index in the name array (0 based).

Remarks
nDex must be smaller than RFFileCount().

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

' Get the name of each file
For iIdx = 0 To wsRfFile.RFFileCount - 1
    sBuff = wsRfFile.RFFileName(iIdx)
    ' Process data
    ...
Next iIdx

See also    RFFILE, RFFileCount