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
 GetNumber?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

vertez

USA
5 Posts

Posted - 11/27/2012 :  1:53:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi.
I would like to put the specific text or number into the graphs as a title from the dialog box. Is it possible?
For example:
%A=(value);
getnumber (number) %%A;
and this kind of script works for numbers in columns but doesn't work for a graphs. My goal is to put a number or text using something like this:
label -p 55 4 (%A); where %A is a number or text.

Penn

China
644 Posts

Posted - 11/28/2012 :  05:15:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

You can create a label first, and then change the text by using %A, such as

%A=(value);
getnumber (number) %%A;
label -p 55 4 -n MyLabel initial;  // label name is MyLabel
MyLabel.text$ = %A;  // change the text


Penn
Go to Top of Page

vertez

USA
5 Posts

Posted - 11/28/2012 :  06:49:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Penn

Hi,

You can create a label first, and then change the text by using %A, such as

%A=(value);
getnumber (number) %%A;
label -p 55 4 -n MyLabel initial;  // label name is MyLabel
MyLabel.text$ = %A;  // change the text


Works great!!! Thanks!
Penn

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