Replace double quote ('') with 2 double quotes ('''')

Posted on 2006-04-02
Last Modified: 2008-01-09
Hello - I am attempting to replace a set of double quotes with 2 pairs of double quotes..  I tried to use:

textLBL.Text = Replace(textLBL.Text, Chr(34),Chr(34)Chr(34))

but this is causing an exception.  any help on this would be greatly appreciated - vb pls

('') -> ('''')
Question by:egdigital
    LVL 37

    Accepted Solution

    textLBL.Text = Replace(textLBL.Text, Chr(34),Chr(34) & Chr(34))
    LVL 37

    Expert Comment

    by:Harisha M G
    You can also use "" instead of Chr(34)...

    textLBL.Text = Replace(textLBL.Text, """","""""")

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now