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
 Origin Forum
 Extract from script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bjorn

Gothenburg, Sweden
18 Posts

Posted - 12/23/1998 :  7:53:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
I need to use the extract-function from within a script but I can't seem to find this as a Labtalk command? Is there any simple way to create this function?
Thanks for Your help !

Bjorn

greg

USA
1379 Posts

Posted - 12/29/1998 :  7:54:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I assume you are referring to the Extract Worksheet Data option in the Worksheet Analysis menu.

There is no single LabTalkTM command that is equivalent to this option.

LabTalkTM is powerful enough to do the job and the script should not be difficult to write.

I do not know how the C programmers wrote their extraction routine, but knowing the strengths and weaknesses of LabTalkTM, I would write it this way:


wo -d;
for(ii=wks.nrows;ii>0;ii--) {
if(col(B)[ii]<4) mark -d col(1) -b ii -e ii;
};

In this example, I duplicated the worksheet, then proceeded to delete those rows that failed my logic test: col(B)[ii]<4

Note that I have used a 'reverse' logic from what I would need to use in the Extract Worksheet Data dialog: col(B)[ii]>=4

[This message has been edited by Greg (edited 12-29-98).]

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