lcPath = SET( "PATH" ) lcFileName = GETFILE( lcFileName, "imp", "Import File" ) SET PATH TO lcPathWhile looking this up I found a bug fix comment in the same program relating to the use of LOCFILE() vs. GETFILE() which I found interesting. I'll just copy the comment here:
* 1. Replace LOCFILE() function with GETFILE(). Primary difference is when * the user presses "cancel" on GETFILE() an empty string is returned. . . * OTOH, when pressing "cancel" with LOCFILE() VFP displays an error with * which one of the options cancels VFP entirely -- not too cool.Scott