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.MultiOpen(): multiple runs?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Belsinga

Netherlands
28 Posts

Posted - 07/28/2010 :  03:46:57 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 8 SR 6
Operating System: Win XP

Hello,

When I run a .ogs file with a File selection dialog screen, I cannot run my script a second time in the same Project. Is there a way to let me execute this .ogs file more than once? My feeling is that it has something to do with the statement: "if(fdlog.MultiOpen() != 0/0)"
but I don't understand it, I copied it from an example.

Regards,
Boudewijn. (NL)

-----------------------------
Code:

type -a;
type -o new;

fdlog.ShowComment = 0;

fdlog.UseGroup(Ascii);

fdlog.UseType(DAT);

fdlog.multiOpen.sort =1;

if(fdlog.MultiOpen() != 0/0)
{
win -c Book1;

loop (ii, 1, fdlog.MultiOpen.Count)

{

win -t data Origin.otw ;//importdata$(ii) ;

FDlog.Get(A, ii, 1);
%N=%A;

FDlog.Get(A, ii);

open -w %A;

win -r %H %N;

type -a %N;

wks.col1.type=4;
wks.col2.type=1;
wks.col3.type=4;
wks.col4.type=1;

GraphingProgram(); //script that uses the data

lab -xb
}



}

larry_lan

China
Posts

Posted - 08/01/2010 :  10:21:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Maybe you can add fdlog.reset(); at the beginning of your script and try again?

Thanks
Larry
Go to Top of Page

Belsinga

Netherlands
28 Posts

Posted - 08/09/2010 :  06:54:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I tried, but it does not seem to work. Any other suggestions?

The Origin 8 Help file on LT does not seem to recognize this "fdlog.reset();" method.
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