var1:="hello\n\tworld"
|
06-21-2021, 09:18 PM
(This post was last modified: 06-21-2021 09:21 PM by compsystems.)
Post: #1
|
|||
|
|||
var1:="hello\n\tworld"
Escape characters are not encoded in history view or [show] preview.
var1:="hello\n\tworld" [enter] "hello □ world" PRINT(var1) [enter] ok var1 [up] [show] "hello □ world" |
|||
06-22-2021, 02:32 AM
(This post was last modified: 06-22-2021 02:38 AM by Liamtoh Resu.)
Post: #2
|
|||
|
|||
RE: var1:="hello\n\tworld"
I am trying to understand the nature of the problem.
I put together this small program to help me comprehend it. Code:
The output looks cleaner without the "\t" substring. Thanks. |
|||
06-22-2021, 10:26 AM
Post: #3
|
|||
|
|||
RE: var1:="hello\n\tworld"
(06-22-2021 02:32 AM)Liamtoh Resu Wrote: I am trying to understand the nature of the problem. When you print the value of var1, it should either print the \n or it should print a linefeed. It does neither. It prints a little square. Tom L Cui bono? |
|||
06-23-2021, 01:13 AM
Post: #4
|
|||
|
|||
RE: var1:="hello\n\tworld"
I thought maybe the intent of the poster was to embed a horizontal tab inside
the "hello\nworld" string. Ascii 9, 0x09, 0o11, 0b00001001 represent a horizontal tab. I could not find any mention of the ppl language supporting a horizontal tab. The best I could do was to embed four (more or less) spaces in the string to space out the word "world". Thanks. |
|||
06-23-2021, 02:33 AM
(This post was last modified: 06-23-2021 04:05 PM by compsystems.)
Post: #5
|
|||
|
|||
RE: var1:="hello\n\tworld"
History view cmds
var1:="hello\n\tworld" [enter] "hello □ world" PRINT(var1) [enter] ok var1 [up] [show] "hello □ world" PHP Code: EXPORT hellow() |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)