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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Clear Comment row

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Sprenger Posted - 09/05/2016 : 08:41:41 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
Chris D Posted - 09/06/2016 : 09:10:59 AM
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
yuki_wu Posted - 09/05/2016 : 9:38:14 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000