Results 1 to 4 of 4

Thread: Double quotes inside Quotes

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Talking Double quotes inside Quotes

    I get a compiler error using this code. How can I write this because I need to insert this code this way.

    Thanks

    Code:
    NewSholder = Replace(sholder, ">i.", "color="#808080">i.")

  2. #2
    Member
    Join Date
    May 2001
    Location
    india
    Posts
    42

    Double quotes inside Quotes

    try this one

    NewSholder = Replace(sholder, ">i.", "color='#808080'>i.")

    or this one

    NewSholder = Replace(sholder, ">i.", "color=""#808080"">i.")


    happy VBing!!


    firoz

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Code:
    NewSholder = Replace(sholder, ">i.", "color=" & chr(34) & "#808080" & chr(34) & ">i.")
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    thanks guys I will try

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width