Post Reply 
[QUESTION] "internal string table"
12-09-2016, 09:43 PM (This post was last modified: 12-09-2016 09:44 PM by Han.)
Post: #7
RE: [QUESTION] "internal string table"
As I already explained, the HP screen shows strings as a single line since newlines are suppressed. It doesn't mean that there was any bug in the variable str. However, since you are copying the result from the display stack, you are copying the display version of your string variable and not the actual contents. You can check for yourself.

1. Make str an exported variable instead of a local variable.
2. In the Home view, type str and press enter. Your string will not show the newlines. Copying this to the command confirms this.
3. However, the str variable itself contains the newlines. Just type str(1) and it returns 10, the character number of the newline character. And type in char(str(2)) and you will see the next characters of the text saved in str.

EDIT: Didier has offered a perfectly fine example of how to extract the contents of your str variable for copying. It basically saves it as a note, found by pressing [Shift] [0]

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [QUESTION] "internal string table" - Han - 12-09-2016 09:43 PM



User(s) browsing this thread: 2 Guest(s)