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
Return and New Line
New Topic
Reply to Topic
Printer Friendly
Author
Topic
kid
USA
20 Posts
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
cpyang
USA
1406 Posts
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
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000