Assigns a Visual FoxPro channel to an existing file.
Syntax
FCHAN _FOpen(char FAR *filename, int mode)
char FAR *filename; /* Name of existing file */
int mode; /* Mode option. */
Remarks
The following mode options are available: FO_READONLY, FO_WRITEONLY, and FO_READWRITE. _FOpen( ) opens a file with exclusive access. _FOpen( ) returns the file channel if it's successful in opening the file, or returns – 1 if it can't open the file.
For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.