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
 delete worksheet rows (LabTalk)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lorenzm

Freiburg, Germany
1 Posts

Posted - 10/15/1998 :  7:40:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How can I delete single worksheet rows with
a LabTalk script. The command 'mark -d' is not working well:

That works: mark -d name_column -b 10 -e 10;
That is not working:
for (k=1;k<80;k+=2) {
mark -d name_column -b k -e k;
};
Origin Version 4.10

[This message has been edited by lorenzm (edited 10-16-98).]

paulwel

Netherlands
14 Posts

Posted - 10/16/1998 :  7:10:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I tried it with both 4.1 and 5.0 and it works fine. Of course you have to remind that if you throw away the first row, all the next rows shift up one place so you have to be sure what you do: if the k used in your script becomes larger than the index of the last row filled in the worksheet, you get a command error. If you want to throw away every other point you better start with the last row like:
for (k=80;k>=1;k-2){etcetera}

Paul

[This message has been edited by paulwel (edited 10-16-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