Replace a characteer in a string with blank

Posted on 2006-04-05
Medium Priority
Last Modified: 2010-04-16
I have a string for example:

violation of FOREIGN KEY constraint "INTEG_74" on table "OS_ORDSERV"

I Need to replace the quotes ( " ) with a blank space or with a ( ' ). How can I do this ????
Question by:Fredy992
1 Comment
LVL 52

Accepted Solution

Carl Tawn earned 200 total points
ID: 16383862
It depends where you are getting the string from, but:

        string s = "violation of FOREIGN KEY constraint \"INTEG_74\" on table \"OS_ORDSERV\"";
        s = s.Replace("\"", "'");

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Loops Section Overview
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question