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
 New line escape sequence

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
bigfootnj Posted - 06/30/2004 : 12:34:11 PM
Is there any escape sequence for a new line character? I have a String variable that I want to put in a label but I don't want it to fill one enormous line. The next best thing would be to limit the label width. I appreciate any ideas.
2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 07/18/2004 : 11:59:23 PM
The -sa switch of the label command is required to allow proper interpretation of the standard carriage return and line feed escape sequences : \r \n

As in :

label -sa -n MyLabel One\r\nTwo\r\nThree;

If the text for your label is stored in a string variable, then there is an additional switch to force the additional layer of substitution :

%A = One\r\nTwo\r\nThree;
label -s -sa -n MyOtherLabel %A;


Mike Buess Posted - 06/30/2004 : 2:01:21 PM
Use an explicit line return in your script...

%L=line 1
line 2;
label -s %L;

Mike Buess
Origin WebRing Member

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