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 sequences

Escape sequences

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 3 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.
  • H Offline
    H Offline
    Hans Ruck
    wrote on last edited by
    #1

    How could i use escape sequences in VB to write strings like this: 'a1 "b1" c1' - where ' is a substitute for " ? rechi

    J W 2 Replies Last reply
    0
    • H Hans Ruck

      How could i use escape sequences in VB to write strings like this: 'a1 "b1" c1' - where ' is a substitute for " ? rechi

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      In VB you could use two double quotes back-to-back... "a1 ""b1"" c1" ...or use the actual ASCII/ANSI char itself... "a1 " & Chr(34) & "b1" & Chr(34) & " c1" I prefer the first method. Jeremy L. Falcon Homepage : Sonork = 100.16311
      "But everybody darlin' sometimes bites the hand that feeds." "Remember in this game we call life that no one said it's fair." "Just because you're winnin' don't mean you're the lucky ones." Song: Breakdown - Album: Use Your Illusion II - Artist: Guns N' Roses

      1 Reply Last reply
      0
      • H Hans Ruck

        How could i use escape sequences in VB to write strings like this: 'a1 "b1" c1' - where ' is a substitute for " ? rechi

        W Offline
        W Offline
        Wictor Wilen
        wrote on last edited by
        #3

        Heya, " is escaped by "" (ie double 'em). /WW

        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