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
 How add text from workbook on graph?

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
Skaytex Posted - 02/09/2014 : 12:00:25 PM
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
2   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 02/10/2014 : 10:12:52 AM
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
Mulvenna Posted - 02/10/2014 : 08:42:20 AM
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

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