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
 How add text from workbook on graph?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Skaytex

Lithuania
7 Posts

Posted - 02/09/2014 :  12:00:25 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I want to add text on graph from workbook A, sheet1 col(C)[1];
Is it possible to add with this command:

label -p 60 10 -n MyText ...;

And what should be instead of ...?

KF

Mulvenna

Germany
46 Posts

Posted - 02/10/2014 :  08:42:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You first need to store the text as a string:

String label$="%([WorkbookA]Sheet1,C,1)";

Then you can use the label command to print the string:

label -p 60 10 -n MyText %(label$);

Hope this helps!
Mulvenna

Edited by - Mulvenna on 02/10/2014 08:47:13 AM
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 02/10/2014 :  10:12:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Seems it needs a minor correction - adding "-s" option to indicate the substitution:
label$=%([Book1]Sheet1,3,1);
label -s -p 60 10 -n MyText %(label$);
Using Range notation should be better now a day:
range r1=[Book1]1!col(C);
label -s -p 60 10 -n MyText %(r1[1]$);

Please try.

--Hideo Fujii
OriginLab
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