GETFILE()

Moderator: Rathinagiri

Post Reply
Jeff Stone
Posts: 44
Joined: Fri Jun 20, 2014 8:41 pm

GETFILE()

Post 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
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: GETFILE()

Post by esgici »

Look at here.
Viva INTERNATIONAL HMG :D
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: GETFILE()

Post 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.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Jeff Stone
Posts: 44
Joined: Fri Jun 20, 2014 8:41 pm

Re: GETFILE()

Post by Jeff Stone »

Thank you both very much!
Post Reply