Page 1 of 1

GETFILE()

Posted: Tue Jul 22, 2014 9:59 pm
by Jeff Stone
I don't know whether this behavior was intended or not but if GETFILE() is called and the user elects to chose a file in a different directory than the current directory, the user selected directory will then become the default directory. The GETFILE() function in VFP will not change the default directory when a user selects a file from a different directory.

Regards,

Jeff

Re: GETFILE()

Posted: Wed Jul 23, 2014 12:57 am
by esgici
Look at here.

Re: GETFILE()

Posted: Wed Jul 23, 2014 1:46 am
by srvet_claudio
Jeff Stone wrote:I don't know whether this behavior was intended or not but if GETFILE() is called and the user elects to chose a file in a different directory than the current directory, the user selected directory will then become the default directory. The GETFILE() function in VFP will not change the default directory when a user selects a file from a different directory.

Regards,

Jeff
HI Jeff,

Code: Select all

  GetFile ( acFilter ,
                  cTitle ,
                  cDefaultPath ,
                  lMultiSelect ,
                  lNoChangeDir )
if lNoChangeDir is .T. --> Restores the current directory to its original value if the user changed the directory while searching for files.

Re: GETFILE()

Posted: Thu Jul 24, 2014 2:20 pm
by Jeff Stone
Thank you both very much!