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
 deleting a row in column a
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bjlee707

Germany
Posts

Posted - 06/29/2004 :  06:22:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am a beginner to use this LabTalk
I want to delete only the from 1 to 21 in column A in data1 worksheet.
I tried this with
mark -d data1_A -b 1 -e 21;

But it deleted rows from 1 to 21 in all column.
How can I delete the rows in one column?

Mike Buess

USA
3037 Posts

Posted - 06/29/2004 :  10:59:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Here's one method...

i1=1; i2=21;
get Data1_A -e npt; // get current # rows in Data1_A
i2++;
npt-=i2-i1; // # rows after deletion
copy -b i2 Data1_A Data1_A -b i1 -e npt;
set Data1_A -e npt;

Mike Buess
Origin WebRing Member
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