| 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 |