I want to print out a newline-character in a string or achieve a wordwrap in any way. The C-style escape sequence \\n
does not seem to work! How can I do this?
You need to concatenate the string parts with String cr
or Character cr
.
Full example:
Transcript show: 'First line', String cr, 'Second line'.
This will print following into the Transcript window:
First line
Second line
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.