RFFileSize Method

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

The RFFileSize method returns the exact size of the file in the position specified by nFile.

VB

lSize = object.RFFileSize (nFile)

VC++

HRESULT hr = object->RFFileSize(short nFile, long *lSize);

Return Value

lSize

The size of the file in bytes. 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 size is being returned. For example, to return the size of the third file you would pass a 2.

Remarks

You must use the RFListFilesEx Method rather than the RFListFiles Method to store the additional file size information within the RFFile object. Use the RFFileDate Method to return the date a file was last modified. Use the RFFileTime Method to return the time a file was last modified.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal