forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@FILEDLG - Starting folder

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Fri Dec 31, 2004 3:01 pm    Post subject: @FILEDLG - Starting folder Reply with quote

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
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Dec 31, 2004 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Fri Dec 31, 2004 8:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Sun Jan 02, 2005 12:27 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Jan 02, 2005 8:54 am    Post subject: Reply with quote

JRoza I am a bit busy to look into it but U can give a try to the filedlg in VDSGUI extension...
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Sun Jan 02, 2005 10:45 am    Post subject: Reply with quote

Thanks Codescript,

I looked thru the vdsgui helpfile but all I can find is a DIRDLG.
Is there a FILEDLG as well in vdsgui?


Surprised Jan
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Jan 02, 2005 12:47 pm    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Jan 03, 2005 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Jan 03, 2005 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Mon Jan 03, 2005 2:29 pm    Post subject: Reply with quote

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.

Embarassed
Jan
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group