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
 fdlog.path$
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hgibhar

Germany
12 Posts

Posted - 11/20/2012 :  05:31:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

hgibhar

Germany
12 Posts

Posted - 11/20/2012 :  05:46:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

greg

USA
1378 Posts

Posted - 11/20/2012 :  1:39:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

hgibhar

Germany
12 Posts

Posted - 11/23/2012 :  10:27:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you, Greg.

But nothing changed. The path$ behaves arbitrary.

Holger
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