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
 fdlog.path$

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
hgibhar Posted - 11/20/2012 : 05:31:25 AM
Origin Ver. 8.6 and Service Release 3
Operating System: win7

Hello,
in my script the option for setting the default path of a directory for a fdlg.multiopen() function does not work! Has anybody an idea of that? Although I set the path$, the samples directory of origin is opened.
Here my script (which was just copied from the forum, to find out the reason tor the problem):

%L="d:\\holger\\OriginLab\\86\\Anwenderdateien\\Scripts\\gamma\\";

FDLOG.DlgName$="Select files for Gummel plot.";
FDLog.ShowComment=0;
FDlog.Path$=%L;
FDlog.numtypes=3;
fdlog.type1$=[DAT files]*.DAT; //Use wildcards in multiopen dialog to select file types
Fdlog.type2$=[TXT files]*.TXT;
fdlog.type3$=[All files]*.*;
FDlog.defType=2; //Focus on *.DAT files first
FDlog.multiOpen.sort=0;
FDLog.MultiOpen();

The other settings work correctly (title, selecting type).

Thx

Holger
3   L A T E S T    R E P L I E S    (Newest First)
hgibhar Posted - 11/23/2012 : 10:27:56 AM
Thank you, Greg.

But nothing changed. The path$ behaves arbitrary.

Holger
greg Posted - 11/20/2012 : 1:39:05 PM
You do not need double \\ for a string assignment. You are probably thinking of the syntax for substitution in text objects.

So,
%L="d:\holger\OriginLab\86\Anwenderdateien\Scripts\gamma\";
and the final '\' is optional.

Also, maybe you meant
FDlog.defType = 1; //Focus on *.DAT files first
hgibhar Posted - 11/20/2012 : 05:46:52 AM
PS: win7 prof. 32 bit;

Now, I chosed another directory, and the dialog opens in my documents folder, which is likely wrong - it is still not working.

I don't what happened and what must be changed.

Holger

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