Home > Language Reference > Classes > StreamFile

FileRef Property

Returns the file handle.

Syntax

Public Property Get FileRef() As Long

Remarks

The FileRef property returns a file handle useable with the Palm OS® Virtual File System Manager functions. This property allows you to access a file opened with HB++ from a shared library written in C.

If the StreamFile object does not refer to an open file, this property returns zero. Note that you should disable caching if you plan to access the file both from HB++ and from an external library using this handle; this can be achieved by specifying a null buffer size when calling the Open method.

For further information on shared libraries and communication between HB++ and the C language, refer to the Shared library chapter in the Programmer's Guide and the description of the Declare statement.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0Requires an expansion slot.