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
 How to erase multiple lines according to a valu???

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
jeanbat29 Posted - 04/17/2012 : 09:40:41 AM
Hello,
Beginner in Origin use I want to read big big big ASCII files (5 columns)...but those ones are polluted with a value "100" sometimes.

How to erase those lines??? Is there a solution with the use of Origin directly?? Or do I need to erase it from the ASCI file??

Many thanks!
2   L A T E S T    R E P L I E S    (Newest First)
jeanbat29 Posted - 04/18/2012 : 05:09:09 AM
Great it works well!!
Many thanks!! :)
Hideo Fujii Posted - 04/17/2012 : 10:26:56 AM
Hi,

Maybe you can use the Worksheet Query tool ("Worksheet: Worksheet Query" menu)
with a conditions like (say, when column A contains the error value, 100):

A!=100

Or, if more than one columns (say columns A and B) contains 100, then:

A!=100 AND B!=100

If the result is satisfactory, you can erase the original worksheet. You can save
your query by choosing "File: Save" menu INSIDE the Worksheet Query tool
for the future reuse.)

Does this work for you?

--Hideo Fujii
OriginLab

P.S. If you don't want to make a copy of the worksheet, and want to delete
error rows directly, you can make a script like:
nr=wks.maxRows;
for(ii=1;ii<=nr;ii++) {
  if(col(A)[ii]==100) {
    range r1 = col(A)[ii:ii];
    mark -d r1;
    ii--;
    nr--;
  }
}
But be careful, the result is not undoable.

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