Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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: