lo**********@gmail.com wrote in news:1161271254.588381.115040
@e3g2000cwe.googlegroups.com:
Hi all,
I have written a program and the label.text is retrieve from the
database.
However the length of the string could be very long and i would wish to
have line breaks in certain portion
I tried manipulating the text in the database with \r\n but this does
not work.
Are there anyways to do it and i would still be able to use label?
Actually, \r\n does work in a label, but the problem is that when your
program reads it from the database, it is reading the \ characters
literally, so it turns it into the equivalent of \\r\\n. Your best option
is probably to "pre-process the string" by replacing "\\r" with "\r" and
"\\n" with "\n" in the code after it reads it from the database.
-mdb