Why can't i add this row into SQL from a C# application, i also tried to do it in mysql query browser and it went perfectly. I supose that i have problems with the "\r\n" part and i don't what to do now. I know that \r\n means next line, but i can't undestand why it will work from mysql query browser and not from the application.
this is the INSERT command
"INSERT INTO `Problem` ( `Problem` ) VALUES('{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1053{\\fonttbl{\\f0\\fnil\\fcharset0 Microsoft Sans Serif;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs17 Testring writing text.\\par\r\n}\r\n\0')"

RichTextBox format to SQL
Andy Wilbourn
GrandpaB
Toan
Bruce Bukovics
Jassim Rahma
what do you mean with It doesn't work!
try to add 2 in front of text as you C# compiler could try to understand \ as escape symbol
I would use this code
DocMARs
Michael_317
>>I allready tried with .Replace(@"\", @"\\") but for some reason it wount take the last "\r\n}\r\n\0" section...
That's because the "\r\n" exists only in your source code. When the assembly is generated, the compiler replaces them with a line feed & carraige return character. By the time your code runs, there are no slashes in that section.
HiredKiller