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