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
 reactivate workbook
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jstst

2 Posts

Posted - 09/16/2010 :  04:57:28 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.8 and Service Release 2(Select Help-->About Origin):
Operating System:Win XP
hi
i made a skript to import multible txt-files in one workbook in seperate sheets. Then it starts a loop wihich changes the colums a bit and then makes a graph for each sheet. The problem is when I start the loop, after the first loop the graph is activated and not the workbook anymore. So the loop cannot continue.
What can I do??
here the skript in short:


string fns, path$="c:\...\";
findfiles f:=fns$ e:="name_*";
int n = fns.GetNumTokens(CRLF);
string bkName$;
newbook loopdata s:=0 result:=bkName$;
impasc fname:=fns$
options.ImpMode:=4
options.Names.FNameToBk:=1
options.Names.FNameToSht:=1
options.Names.FNameToBkComm:=1
options.Names.FNameToColComm:=1
options.Names.FPathToComm:=0
orng:=[bkName$]A1!A[1]:C[0] ;
doc -e LW {
normalize iy:=Col(2) method:=max;
plotxy iy:=(1,3) plot:=200;
};

DataConv

Germany
60 Posts

Posted - 09/17/2010 :  01:59:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi jstst,

What i do in that case is following: At the beginning of the script i insert something like
aa$ = page.name$;
Before the critial sections i simply insert a
win -a %(aa$);
This refocuses back to your (entry) worksheet...
Go to Top of Page

jstst

2 Posts

Posted - 09/17/2010 :  03:18:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thanks works perfectly!!
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