RFFileName Method

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

The RFFileName method returns the name of a file saved on an RF device.

VB

pszName = object.RFFileName (nFile)

VC++

HRESULT hr = object->RFFileName(short nFile, Cstring *pszName);

Return Value

pszName

The file name variable. If this method returns an empty string, an error may have occurred. Use the RFGetLastError method to return the generated error code.

Parameters

nFile

The zero based index value file on the RF device that's file name is being returned. For example, to return the file name of the third file you would pass a 2.

Remarks

For a complete listing of all files on an RF device, first retrieve the list using the RFListFiles Method, then loop the RFFileName method for the entire number of files returned by the RFFileCount Method.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal