The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Selecting a folder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter.cook

UK
356 Posts

Posted - 08/19/2008 :  12:47:10 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

Can someone please suggest the best way to select a folder only via dialog?

The problem is that I have an image file (pdf) and want the user to be able to chnage the default folder via dialog. I can handle this via fdlog.saveas for ascii files but can't do the equivalent with image (pdf) files.

Thanks,

cheers,

pete

eparent

118 Posts

Posted - 08/20/2008 :  10:26:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you want to prompt the user to pick a folder then I suggest using FDlog's OpenPath method.


FDlog.Reset();
FDlog.DlgName$="Choose a folder for PDF files";
FDlog.OpenPath();
%a=;


If you want to change the default path for all images then call FDlog's UseGroup method before calling OpenPath.

FDlog.Reset();
FDlog.DlgName$="Choose a folder for image files";
FDlog.UseGroup(image);
FDlog.OpenPath();
%a=;

Go to Top of Page

peter.cook

UK
356 Posts

Posted - 08/20/2008 :  11:47:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks - I had missed this as it wasn't in the help file (although found by fdlog.= in script window).

Cheers,

Pete
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000