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
 Hiding and Showing Columns

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
Drbobshepherd Posted - 11/30/2012 : 5:54:44 PM
Origin Ver. and Service Release (Select Help-->About Origin):OriginPro8.6
Operating System: XP

I need to know how to hide/show columns in LabTalk.

DrBob
3   L A T E S T    R E P L I E S    (Newest First)
Drbobshepherd Posted - 12/04/2012 : 10:32:58 AM
Thank you for the suggestions.

Couturier, slight bug-- I had to change the range command to "range rCol=col(2);" to get it working. Your suggestion was slightly faster and it got me to think of a simpler approach. Your two commands could be replaced by one line: "wks.col2.width=0;". However, I will keep your suggestion in mind if I want to use column labels instead of column numbers.

Colhide looks to be a good X-function to keep in mind if I want to restore columns to their original width. Note to OriginLab: I couldn't find colhide in the help files.

Thanks again,
DrBob
couturier Posted - 12/03/2012 : 03:15:55 AM
You can also use the width property, that will work faster than Xfunction:

range rCol=2;
rCol.width=0;
Penn Posted - 12/03/2012 : 01:13:09 AM
Hi DrBob,

You can try the colhide X-Function. For example:

colhide irng:=[book1]1!col(c) operation:=0;  // hide column C, 0=hide, 1=show


Penn

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