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
 Which object refers to current active column?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Gobman

Japan
4 Posts

Posted - 05/19/2003 :  10:00:30 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

easwar

USA
1965 Posts

Posted - 05/20/2003 :  2:18:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.


Go to Top of Page

Gobman

Japan
4 Posts

Posted - 05/20/2003 :  9:12:16 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks. It works well.

Gob

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