Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Escape character

Escape character

Scheduled Pinned Locked Moved Visual Basic
databasecomquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Megan Forbes
    wrote on last edited by
    #1

    I'm wondering if there's an escape character for " when using it as below? getFieldValues = Replace(getFieldValues, """, "'") I'm looking to replace all "'s in a string so that I can copy and paste it directly into query analyser as a SQL string. Thanks :)


    Look at the world about you and trust to your own convictions. - Ansel Adams
    Meg's World - Blog Photography - The product of my passion

    D 1 Reply Last reply
    0
    • M Megan Forbes

      I'm wondering if there's an escape character for " when using it as below? getFieldValues = Replace(getFieldValues, """, "'") I'm looking to replace all "'s in a string so that I can copy and paste it directly into query analyser as a SQL string. Thanks :)


      Look at the world about you and trust to your own convictions. - Ansel Adams
      Meg's World - Blog Photography - The product of my passion

      D Offline
      D Offline
      D Millar
      wrote on last edited by
      #2

      The proper format is to double the quotes, e.g.: getFieldValues = Replace(getFieldValues, """", "'") denimined

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups