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 |
|
|