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
 New line escape sequence
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bigfootnj

USA
Posts

Posted - 06/30/2004 :  12:34:11 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Mike Buess

USA
3037 Posts

Posted - 06/30/2004 :  2:01:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use an explicit line return in your script...

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

Mike Buess
Origin WebRing Member
Go to Top of Page

greg

USA
1380 Posts

Posted - 07/18/2004 :  11:59:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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;


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