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
 Clear Comment row
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Sprenger

Germany
15 Posts

Posted - 09/05/2016 :  08:41:41 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 2016 SR2 and Service Release (Select Help-->About Origin): 9.3.2.303
Operating System: Windows 10

A simple question (I hope):
How can I clear the comment row (in all columns) in a sheet using LabTalk script?

Many thanks

Frank

yuki_wu

896 Posts

Posted - 09/05/2016 :  9:38:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Frank,

I think you can try this script:

wks.labels(-C);

If you want to know more about the wks object, you can go to this page:
http://www.originlab.com/doc/LabTalk/ref/Wks-obj

Hopes it help.

Yuki
OriginLab
Go to Top of Page

Chris D

428 Posts

Posted - 09/06/2016 :  09:10:59 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
In addition to the above suggestion (that simply hides the Comments label row without deleting the content), if you want to actually delete the contents of the Comments without hiding the Comment row, you can run this command:

for (int nn = 1; nn <= wks.ncols; nn++) { wcol(nn)[C]$=""; }



Thanks,
Chris Drozdowski
Originlab Technical Support
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