F
Fred
Hello,
Is there a way to read values from the registry as regular instead of
verbatim?
Regards,
Fred
Is there a way to read values from the registry as regular instead of
verbatim?
Regards,
Fred
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Is there a way to read values from the registry as regular instead of
verbatim?
Mattias Sjögren said:What do you mean by regular and verbatim in this context?
Fred said:When I read a string value from the registry then the string is formatted
with @ in the begin. I want to read it regular so that I can use the \r and
etc in the string for text formatting.
Jon Skeet said:You're being confused by the debugger.
Fred said:Compiled as release same "problem", when I add a \r or whatever to the
string in the register and write it to a textbox for testing the \r is
displayed as \r instead of a return. Is there another solution for this?
Jon Skeet said:If it's \r in the textbox itself, then that's in the registry. You can
replace all occurrences of "\r" with CR, but you need to know for
certain what you really expect in the registry.
Hi Jon
What I want is that a string stored in the registry something like this
'Thank you \r\n second line' read out of the registry and use that in a
e-mail. When I remove the @ in debug mode or create the string in the
program then it works. Only when a read the string from the registry it is
not formatted like the way I want.
Regards,
Fred
Fred said:What I want is that a string stored in the registry something like this
'Thank you \r\n second line' read out of the registry and use that in a
e-mail. When I remove the @ in debug mode or create the string in the
program then it works. Only when a read the string from the registry it is
not formatted like the way I want.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.