Family Tree Mike
8/15/2008 7:04:00 PM
I guess you lost me. Why is the second string easier for the user to edit?
If you ask the user for a formatting string from a textbox, then you just
use it like any other formatting string.
"bbla32@op.pl" wrote:
> Hey, is there a fast way to change a string used for formatting, like
>
> Value:\t{0}\r\n
>
> to string that user can edit, like:
>
> Value:\\t{0}\\r\\n
>
> In other words, I want user to be able to edit a format string. Is
> there a quicker way than
>
> format.Replace("\r", "\\r").Replace("\n", "\\n").Replace("\t", "> \t"). ....
>