Click here to Skip to main content
15,921,371 members
Home / Discussions / C#
   

C#

 
QuestionRemoving a " from a string Pin
sharpiesharpie16-Feb-07 12:16
sharpiesharpie16-Feb-07 12:16 
AnswerRe: Removing a " from a string Pin
Christian Graus16-Feb-07 12:18
protectorChristian Graus16-Feb-07 12:18 
GeneralRe: Removing a " from a string Pin
sharpiesharpie16-Feb-07 12:45
sharpiesharpie16-Feb-07 12:45 
GeneralRe: Removing a " from a string Pin
Christian Graus18-Feb-07 9:09
protectorChristian Graus18-Feb-07 9:09 
AnswerRe: Removing a " from a string Pin
Guffa16-Feb-07 14:01
Guffa16-Feb-07 14:01 
GeneralRe: Removing a " from a string Pin
sharpiesharpie16-Feb-07 15:46
sharpiesharpie16-Feb-07 15:46 
AnswerRe: Removing a " from a string Pin
Guffa17-Feb-07 14:58
Guffa17-Feb-07 14:58 
AnswerRe: Removing a " from a string Pin
Thomas Stockwell16-Feb-07 16:16
professionalThomas Stockwell16-Feb-07 16:16 
You need to use the special escape sequences to specify a quote. To remove a quote use the following, assuming their is a string 'This is a "quote"' assigned to the variable str.

You would declare it as:
String str="\'\"This is a \"quote\"\'";
int index=str.indexof("\"");


Other escape sequences that can be used:
\n - newline
\" - double quote
\\ - backslash
\b - backspace
\t - tab
\r - carriage return
\' - single quote

These escape sequences were taken from my AP Programming book specifc to java, but I know most of them work with .NET languages if not all of them.

Regards,
Thomas Stockwell

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Visit my homepage Oracle Studios[^]

GeneralRe: Removing a " from a string Pin
sharpiesharpie17-Feb-07 1:34
sharpiesharpie17-Feb-07 1:34 
Questionhow to implement payflopro_recurringbilling through pfpro_dotnet_sdk_RC2_v1.1(verisign sdk) in c# Pin
shankhan bhandari16-Feb-07 11:33
shankhan bhandari16-Feb-07 11:33 
AnswerRe: how to implement payflopro_recurringbilling through pfpro_dotnet_sdk_RC2_v1.1(verisign sdk) in c# Pin
Wayne Phipps17-Feb-07 3:23
Wayne Phipps17-Feb-07 3:23 
QuestionProblem: vista will not sent a WM_ message [modified] Pin
michele_cv16-Feb-07 10:37
michele_cv16-Feb-07 10:37 
Questiongetting each byte of the pixel Pin
samreengr816-Feb-07 9:47
samreengr816-Feb-07 9:47 
AnswerRe: getting each byte of the pixel Pin
Christian Graus16-Feb-07 10:00
protectorChristian Graus16-Feb-07 10:00 
AnswerRe: getting each byte of the pixel Pin
Wayne Phipps17-Feb-07 4:29
Wayne Phipps17-Feb-07 4:29 
QuestionDraging a line Pin
CodeItWell16-Feb-07 9:39
CodeItWell16-Feb-07 9:39 
AnswerRe: Draging a line Pin
Christian Graus16-Feb-07 10:00
protectorChristian Graus16-Feb-07 10:00 
AnswerRe: Draging a line Pin
MoustafaS16-Feb-07 10:23
MoustafaS16-Feb-07 10:23 
QuestionDevice Volume Monitor :: Issue On Insertion of CD? Pin
Matt U.16-Feb-07 9:32
Matt U.16-Feb-07 9:32 
QuestionSaving text? Pin
alostdruid16-Feb-07 9:16
alostdruid16-Feb-07 9:16 
AnswerRe: Saving text? Pin
MoustafaS16-Feb-07 10:27
MoustafaS16-Feb-07 10:27 
GeneralRe: Saving text? Pin
alostdruid16-Feb-07 11:51
alostdruid16-Feb-07 11:51 
GeneralRe: Saving text? Pin
MoustafaS16-Feb-07 12:09
MoustafaS16-Feb-07 12:09 
QuestionDataGridView - Adding new row Pin
Aleksandar Smudja16-Feb-07 9:11
Aleksandar Smudja16-Feb-07 9:11 
AnswerRe: DataGridView - Adding new row Pin
MoustafaS16-Feb-07 10:33
MoustafaS16-Feb-07 10:33 

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.