| View previous topic :: View next topic |
| Author |
Message |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Fri Dec 31, 2004 3:01 pm Post subject: @FILEDLG - Starting folder |
|
|
Hi,
Am I overlooking something or is @FILEDLG always starting in the path(%0) folder?
I tried to put a DIRECTORY CHANGE before it but it still opens in the program folder.
Maybe this is something for the wish list: an extra parameter for @FILEDLG which indicates the folder the dialog should start in.
And last but not least: A very good 2005 for all in good health!
Jan Roza |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Dec 31, 2004 5:46 pm Post subject: |
|
|
Try putting %%targetdir\*.txt or whatever in the filename field. If you implement code to store the last file saved or opened, and always put that there, it will always open in the last directory you used. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Fri Dec 31, 2004 8:00 pm Post subject: |
|
|
I tried that Jules and although it does show the right folder that way it will not show any *.txt files in that folder. It looks as if you either see *.txt files when supplying just *.txt in the filename or an empty folderview when supplying a full pathname\*.txt.
I'll experiment a bit more in the new year, right now it's family time.
Happy New Year!
Jan |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Sun Jan 02, 2005 12:27 am Post subject: |
|
|
I did some more tests, but I either get the right folder but without the dialog showing files in it or I get the default folder with files showing according to the supplied filemask.
So I still would appreciate an extra parameter that specifies the path. |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jan 02, 2005 8:54 am Post subject: |
|
|
JRoza I am a bit busy to look into it but U can give a try to the filedlg in VDSGUI extension... _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Sun Jan 02, 2005 10:45 am Post subject: |
|
|
Thanks Codescript,
I looked thru the vdsgui helpfile but all I can find is a DIRDLG.
Is there a FILEDLG as well in vdsgui?
Jan |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jan 02, 2005 12:47 pm Post subject: |
|
|
OOPS True .. I had initially planned to add both but then kept only dirdlg as the dirdlg of VDS5 couldn't be customised while filedlg of vds5 was working well with custom backgrounds. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Jan 03, 2005 12:42 pm Post subject: |
|
|
Not sure if this helps.. try leaving the last parameter blank
| Code: |
%%file_collected = @filedlg(*.txt,get file,,MULTI)
info %%file_collected
|
The above format lets you Everytime you get a text file loaded into %%file_collected, it will remember the last place you got the file...
Is that what you wanted?
Last edited by vtol on Mon Jan 03, 2005 12:59 pm; edited 4 times in total |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Jan 03, 2005 12:42 pm Post subject: |
|
|
| JRoza wrote: | I tried that Jules and although it does show the right folder that way it will not show any *.txt files in that folder. It looks as if you either see *.txt files when supplying just *.txt in the filename or an empty folderview when supplying a full pathname\*.txt.
I'll experiment a bit more in the new year, right now it's family time.
Happy New Year!
Jan |
Well, it works for me.
| Code: | %%file = @windir(Personal)\*.doc
%R = @filedlg("Doc files (*.doc)|*.doc",This is the title,%%file) |
opens in "My Documents" showing all my Word documents. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
JRoza Contributor


Joined: 17 Aug 2003 Posts: 182 Location: Netherlands
|
Posted: Mon Jan 03, 2005 2:29 pm Post subject: |
|
|
Thanks Jules!
You're right (as usual) this works.
It turned out I changed the mask in the first parameter instead of using the third parameter.
My mistake.
Jan |
|
| Back to top |
|
 |
|