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
 Which object refers to current active column?

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
Gobman Posted - 05/19/2003 : 10:00:30 PM
I want to highlight one column, then give it an offset, such as all value +1 or +2, then next column. Are there any simply command to do:
active_column+=1;
?
Thank you very much.

Gob

2   L A T E S T    R E P L I E S    (Newest First)
Gobman Posted - 05/20/2003 : 9:12:16 PM
Thanks. It works well.

Gob

easwar Posted - 05/20/2003 : 2:18:10 PM
Hi Gob,

If you have the worksheet active and you have selected a column by clicking on the header of the column, or by clicking on any row inside that columns, then the variable %c in LabTalk holds the name of that dataset.So in script window you can say
%c+=1
to add 1 to all elements of that dataset.
This is the same as typing
data1_b+=1

There are other commands to loop thru all columns in a worksheet programatically, and you can find them in the LabTalk documentation.

Easwar
OriginLab.



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