How to Return Only the Filename from GETFILE() FunctionID: Q103683 The information in this article applies to:
SUMMARYThe GETFILE() function returns the whole path and filename of a selected file. To return only the filename, you can use the procedure shown below to remove the path information.
MORE INFORMATIONTo return only the filename for the GETFILE() function, you can establish the sample FILENAME procedure shown below in a procedure file. The following code demonstrates how to call the FILENAME() function in a program:
SAMPLE CODE FOR THE FILENAME PROCEDURE
FoxPro for MS-DOS and FoxPro for Windows
FoxBASE+/Mac
Additional reference words: FoxDos FoxWin 1.02 2.00 2.50 2.50a
KBCategory: kbprg
KBSubcategory: FxprgGeneral
|
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |