escape sequences in resource files...

  • Thread starter Thread starter ouch
  • Start date Start date
O

ouch

Hi All,

I'm wondering if anyone knows what I need to do to be able to use
escape sequences in a resource file?

I think I'm probably doing something stupid, but I can't think what
I'm doing wrong.

For example:
If I have a name called strAbout, with the value:
My Application developed by Me (2003)\nemail: (e-mail address removed)

I would hope to see a new line between "My Application developed by Me
(2003)" and "email: (e-mail address removed)"

but it doesn't work and I see "My Application developed by Me
(2003)\nemail: (e-mail address removed)" verbatim.

Does anyone have a solution or can anyone tell me what I'm doing
wrong?

Thanks in advance,
Ouch...
 
The XML reader escapes \n for you. Try breaking the line with a
hard-return, yourself, like

<value>My Application developed by Me (2003)
email: (e-mail address removed)</value>

-vJ
 
Hi Vijay,

I tried that too, with mixed results.
I finally managed a decent solution...I think.
I did some investigation and finally used the "unescape" method to
return a non-verbatim string.

It seems to work.

Thanks,
ouch
 
Back
Top