RFListFiles Method

This member of RFFile Object is supported on iOS, Windows Mobile, Windows CE, Palm, and DOS.

The RFListFiles method returns the total number of files saved on an RF device that match the input mask and stores the file names in the current object.

VB

nFiles = object.RFListFiles (pszMask)

VC++

HRESULT hr = object->RFListFiles(LPCTRSTR pszMask, short *nFiles);

Return Value

nFiles

The file count variable. This method will return a -1 if an error occurs. Use the RFGetLastError method to return the generated error code.

Parameters

pszMask

The list file mask (For example, *.* will return all files while "*.ton" will return only tone files). This file mask is similar to the DOS file mask convention.

Remarks

To return the value of the last successful RFListFiles method without making an actual call to the RF device, use the RFFileCount Method. Use the RFListFilesEx Method to additionally store the file date, time and size values within the RFFile object.

Example

See the RFFile Samples.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal