Click here to Skip to main content
15,918,041 members
Home / Discussions / C#
   

C#

 
QuestionEscaping Quotes Pin
maliary14-Aug-08 21:52
maliary14-Aug-08 21:52 
AnswerRe: Escaping Quotes Pin
blackjack215014-Aug-08 22:05
blackjack215014-Aug-08 22:05 
GeneralRe: Escaping Quotes Pin
maliary14-Aug-08 22:36
maliary14-Aug-08 22:36 
GeneralRe: Escaping Quotes Pin
Mycroft Holmes14-Aug-08 23:05
professionalMycroft Holmes14-Aug-08 23:05 
GeneralRe: Escaping Quotes Pin
Guffa14-Aug-08 23:27
Guffa14-Aug-08 23:27 
GeneralRe: Escaping Quotes Pin
maliary15-Aug-08 2:36
maliary15-Aug-08 2:36 
GeneralRe: Escaping Quotes [modified] Pin
PIEBALDconsult15-Aug-08 3:18
mvePIEBALDconsult15-Aug-08 3:18 
GeneralRe: Escaping Quotes Pin
Guffa15-Aug-08 5:00
Guffa15-Aug-08 5:00 
I found very little about RKLib.Export when searching for it. Does it export to CSV?

In that case, escaping quotation marks with a backslash will not help you at all.

A value in CSV that contains commas (or whatever separator is used), line breaks or quotation marks should be enclosed with quotation marks, and quotation marks are escaped by putting double quotation marks in the value.

If the library doesn't handle escaping at all, you can do something like this:
if (value.indexOfAny(new char[]{ ',', ';', '"', '\x0d', '\x0a'}) != -1) {
   value = "\"" + value.Replace("\"", "\"\"") + "\"";
}


Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Escaping Quotes Pin
maliary15-Aug-08 22:29
maliary15-Aug-08 22:29 
QuestionBeginInvoke in asynchronous model Pin
George_George14-Aug-08 21:44
George_George14-Aug-08 21:44 
AnswerRe: BeginInvoke in asynchronous model Pin
N a v a n e e t h15-Aug-08 8:24
N a v a n e e t h15-Aug-08 8:24 
GeneralRe: BeginInvoke in asynchronous model Pin
George_George17-Aug-08 20:17
George_George17-Aug-08 20:17 
GeneralRe: BeginInvoke in asynchronous model Pin
N a v a n e e t h18-Aug-08 6:15
N a v a n e e t h18-Aug-08 6:15 
GeneralRe: BeginInvoke in asynchronous model Pin
George_George18-Aug-08 18:47
George_George18-Aug-08 18:47 
GeneralRe: BeginInvoke in asynchronous model Pin
N a v a n e e t h20-Aug-08 6:38
N a v a n e e t h20-Aug-08 6:38 
GeneralRe: BeginInvoke in asynchronous model Pin
George_George21-Aug-08 23:07
George_George21-Aug-08 23:07 
GeneralRe: BeginInvoke in asynchronous model Pin
N a v a n e e t h24-Aug-08 18:29
N a v a n e e t h24-Aug-08 18:29 
GeneralRe: BeginInvoke in asynchronous model Pin
George_George24-Aug-08 19:33
George_George24-Aug-08 19:33 
GeneralRe: BeginInvoke in asynchronous model Pin
N a v a n e e t h25-Aug-08 7:11
N a v a n e e t h25-Aug-08 7:11 
GeneralRe: BeginInvoke in asynchronous model Pin
George_George3-Sep-08 20:21
George_George3-Sep-08 20:21 
QuestionC# CodeDom Pin
AndieDu14-Aug-08 20:20
AndieDu14-Aug-08 20:20 
AnswerRe: C# CodeDom Pin
leppie14-Aug-08 23:33
leppie14-Aug-08 23:33 
GeneralRe: C# CodeDom Pin
AndieDu17-Aug-08 15:36
AndieDu17-Aug-08 15:36 
Generalvalue in the controls like label, txt box should be clear in btnClear_Click Pin
ybasha14-Aug-08 19:43
ybasha14-Aug-08 19:43 
GeneralRe: value in the controls like label, txt box should be clear in btnClear_Click Pin
Christian Graus14-Aug-08 20:13
protectorChristian Graus14-Aug-08 20:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.