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
 How to erase multiple lines according to a valu???
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jeanbat29

Switzerland
3 Posts

Posted - 04/17/2012 :  09:40:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

Hideo Fujii

USA
1582 Posts

Posted - 04/17/2012 :  10:26:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.

Edited by - Hideo Fujii on 04/17/2012 10:48:12 AM
Go to Top of Page

jeanbat29

Switzerland
3 Posts

Posted - 04/18/2012 :  05:09:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Great it works well!!
Many thanks!! :)
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