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
Topic
bigfootnj
USA
Posts
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.
Mike Buess
USA
3037 Posts
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
greg
USA
1380 Posts
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;
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Learning Edition Forum
Origin Forum for Programming
Forum for Python
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
LabTalk Forum
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