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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Selecting a folder

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
peter.cook Posted - 08/19/2008 : 12:47:10 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
peter.cook Posted - 08/20/2008 : 11:47:39 AM
Many thanks - I had missed this as it wasn't in the help file (although found by fdlog.= in script window).

Cheers,

Pete
eparent Posted - 08/20/2008 : 10:26:01 AM
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=;


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000