GETFILE()
Posted: Thu Feb 08, 2018 6:24 pm
Hello,
I notice strange behaviour with the GETFILE() function (or is it me making a mistake?)
I want to open the System Dialog at my StartUpFolder. So I code this:
The GETFILE however is always opening the folder I used before instead of the startupfolder.
Am I doing something wrong or what ?
Serge
I notice strange behaviour with the GETFILE() function (or is it me making a mistake?)
I want to open the System Dialog at my StartUpFolder. So I code this:
Code: Select all
PUBLIC cCurrentSRT := GetStartUpFolder()
Msginfo(cCurrentSRT) // OK correct folder !
DO WHILE TRUE
cMAIL := Getfile ( { {'CSV Files','*.CSV'} } , 'CSV', cCurrentSRT + '\' , .f. , .f. ) // Gives last opened folder !!!
IF EMPTY(cMAIL)
RETURN
ENDIF
IF !FILE(cMAIL)
MSGINFO(cMAIL + ' does not exist!')
RETURN
ENDIF
EXIT
ENDDO
oFile := TFileRead():New( cMAIL )
...etc.....
Am I doing something wrong or what ?
Serge