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
 Origin Forum
 Extract from script

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
bjorn Posted - 12/23/1998 : 7:53:00 PM
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

1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 12/29/1998 : 7:54:00 PM
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).]


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