Also, what are the properties that I need to set to specify the file name and the extension to simulate the LOCFILE() function?
LOCFILE() searches the current directory and FoxPro path whether or not a path is specified. If a path is, and the file isn't found then the current directory and then the Fox path are searched until a match is found. If no match is found then, the dialog is displayed. To emulate this behavior, you'd have to:
1. If a path is specfied, use FILE() to check for the file.
2. If no path is specified or FILE() returns .F., check the current directory.
3. If 2. fails, parse the path. (FILE() with no path will do this).
George
Ubi caritas et amor, deus ibi est