Hello,
Can anybody tell me how to retrieve a filename + foldername? (Eg C:\test\file.dbf)
I want to retrieve a file plus its location. GetFile() gives only filename but without drive + folders + subfolders.
Thanks, Serge
GetFile and GetFolder
Moderator: Rathinagiri
- serge_girard
- Posts: 3161
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
GetFile and GetFolder
There's nothing you can do that can't be done...
Re: GetFile and GetFolder
See this samples: C:\hmg.3.4.2\SAMPLES\Functions\GETFILE
Compile and select: File / Test 2
Compile and select: File / Test 2
Re: GetFile and GetFolder
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 .T. retrieve drive + folders + subfolders.
- If passed <nFilterIndex> by reference, will return index of file filter selected by user
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 .T. retrieve drive + folders + subfolders.
- If passed <nFilterIndex> by reference, will return index of file filter selected by user
- serge_girard
- Posts: 3161
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: GetFile and GetFolder
Thank you Toledo!
I will try,
Serge
I will try,
Serge
There's nothing you can do that can't be done...
- serge_girard
- Posts: 3161
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: GetFile and GetFolder
Great it works !
Thanks again, Serge
Thanks again, Serge
There's nothing you can do that can't be done...