>?justfname(getfile()) >/pre> >should do the work > >if you insist on GetFile the following will work ><pre> >#DEFINE GETFILE MyGetFile > >?GETFILE() > >FUNCTION MyGetFile > LPARAMETERS; > cFileExtensions,; > cText,; > cOpenButtonCaption,; > nButtonType,; > cTitleBarCaption > > #UNDEFINE GETFILE > > lvTemp = PCOUNT() > DO CASE > CASE lvTemp=0 > lvTemp = JUSTFNAME(GETFILE()) > CASE lvTemp=1 > lvTemp = JUSTFNAME(GETFILE(cFileExtensions) > CASE lvTemp=2 > lvTemp = JUSTFNAME(GETFILE(cFileExtensions,cText)) > CASE lvTemp=3 > lvTemp = JUSTFNAME(GETFILE(cFileExtensions,cText,cOpenButtonCaption)) > CASE lvTemp=4 > lvTemp = JUSTFNAME(GETFILE(cFileExtensions,cText,cOpenButtonCaption, nButtonType)) > CASE lvTemp=5 > lvTemp = JUSTFNAME(GETFILE(cFileExtensions,cText,cOpenButtonCaption, nButtonType,cTitleBarCaption)) > OTHERWISE > ENDCASE > > RETURN lvTemp >ENDFUNC &&MyGetFile >Thank you. But with all due respect; seems like over-kill. I can get the file with GetFile() and then simply get the file name by applying justfname().