The GetFile method returns handle of the file attached to the object.
GetFile() As Long
Method has no parameters.
The return value is the Windows handle referring to the opened file that is attached to the object.
The return value is -1 if no file is attached to the object.
File handle returned from the method can be used for attaching file to another object by means of Attach method.
It can be also passed to any Windows file access functions that expect file handle as a parameter.
Opening and Attaching File