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
 Return and New Line

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
kid Posted - 05/31/2002 : 6:59:59 PM
I want to inset a return and new line in a string that will latter become my legend text

I'm using this scrip to build my legend:
(1)loop(ii,1,count){
(2) %A=legend.text$;
(3) %Z=ini.master.legendPlot$(ii)$;
(4) if(ii==1)
(5) legend.text$="\L(1) %Z";
(6) else
(7) legend.text$="%A\L($(ii)) %Z";
(8)}

I try inserting <\r\n> in lines 5 and 7, but then the legend displays the letters rn istead of inserting a new line.

Kid
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 05/31/2002 : 7:03:58 PM
LabTalk is not C, so strings are ok to be multiline, so you can simply


 
(5)legend.text$="\L(1) %Z
";

in other words, strings in labtalk will be treated as is, so you can just put tab and newline directly.

CP



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