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.MultiOpen(): multiple runs?

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
Belsinga Posted - 07/28/2010 : 03:46:57 AM
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
}



}
2   L A T E S T    R E P L I E S    (Newest First)
Belsinga Posted - 08/09/2010 : 06:54:34 AM
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.
larry_lan Posted - 08/01/2010 : 10:21:25 PM
Maybe you can add fdlog.reset(); at the beginning of your script and try again?

Thanks
Larry

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