AUGE_OHR wrote: ↑Fri Jun 12, 2020 8:12 am
hi,
4th Parameter in your code is missing ... hm
try Demo c:\hmg.3.4.4\SAMPLES\Functions\GETFILE\demo.prg
Thank you Auge_Ohr.
As per the HMG Reference, the 4th parameter is for multiselect of files:
/*
Syntax:
GetFile ( acFilter ,
cTitle ,
cDefaultPath ,
lMultiSelect ,
lNoChangeDir ,
nFilterIndex ) --> SelectedFileName(s)
Tips:
- If <lMultiSelect> option is used, a character array containing selected filenames is returned (maximun number of selected files returned is 1024).
- If <lNoChangeDir> option is omitted, default value is .F.
- If passed <nFilterIndex> by reference, will return index of file filter selected by user
*/
So the 4th parameter can be .t. or .f. I gave it .f. and rebuilt the app but still the same issue. The issue is that Getfile function seems to ignore the variable cdefaultpath and just remembers the last folder actually used.