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
 2 simple questions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Selinger78

Germany
Posts

Posted - 01/21/2010 :  11:31:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
After years I need to use origin (V 6.0) again.
I want to use the worksheet script and have two questions:

1. Is there a simple command to delete empty lines in a specified worksheet (e.g. Data1)?

2. Is the an easy way to change the column names in a specified worksheet (e.g. Data1)?

Best regards,
Selinger78

larry_lan

China
Posts

Posted - 01/21/2010 :  8:51:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
1. mark -d command. Such as, deleting row 3 in Data1"

mark -d data1_a -b 3 -e 3

2. worksheet -n colRef newName. For example, rename the 2nd column to "Hello":

worksheet -n 2 Hello;
Go to Top of Page

Selinger78

Germany
Posts

Posted - 01/22/2010 :  05:32:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the answer!
An addition to my question #1:

Is there a possibility to delete ALL empty rows of a certain worksheet?

Regards,
Selinger78

Edited by - Selinger78 on 01/22/2010 05:35:17 AM
Go to Top of Page

greg

USA
1378 Posts

Posted - 02/18/2010 :  3:26:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
While it might be possible to to come up with a script using the mark command which does what you ask, I recommend upgrading to the latest Origin because there is a rather nasty bug in 6.1 where the mark command sometimes deletes columns.
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