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
 data reader index and button-up activated script
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

florenciapw

Argentina
Posts

Posted - 08/10/2005 :  3:10:53 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.0
Operating System: dos (windows)

When I select a data point in a graph with the Data Reader and afterwards I want to use de index number of that point in a script asociated to an object which is run after the "button-up" option, the index number si reset to 1. How can I keep the index number of the selected data point?

Mike Buess

USA
3037 Posts

Posted - 08/10/2005 :  3:33:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use the pointproc macro to save index under a new name and use that name in your button. For example,

def pointproc {pti=index}; // define pointproc macro
dotool 3; // open data selector tool

The macro executes when user selects a data point w/Enter or double-click. Index is saved as pti which can be used by your button scripts. In fact, you might find it easier to run those scripts directly from the macro and bypass the button. See this article for details...

http://www.originlab.com/index.aspx?s=9&pid=546

Mike Buess
Origin WebRing Member
Go to Top of Page

florenciapw

Argentina
Posts

Posted - 08/11/2005 :  11:11:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It worked perfectly. Thanks a lot!
flor
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