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. getting a string full of apostrophes

getting a string full of apostrophes

Scheduled Pinned Locked Moved Visual Basic
question
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.
  • R Offline
    R Offline
    reegan41
    wrote on last edited by
    #1

    I'm making a log file and want to have a string of apostrophes to separate parts of the log file. Dim divider As String Dim t As TextStream 'other declarations are there like FileSystemObject but its irrelevant. The log works besides this string I desire' divider = "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''" t.WriteLine(divider) Now I've tried using the escape character \', using hyphens (-) and asterisks(*). Any ideas?

    L 1 Reply Last reply
    0
    • R reegan41

      I'm making a log file and want to have a string of apostrophes to separate parts of the log file. Dim divider As String Dim t As TextStream 'other declarations are there like FileSystemObject but its irrelevant. The log works besides this string I desire' divider = "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''" t.WriteLine(divider) Now I've tried using the escape character \', using hyphens (-) and asterisks(*). Any ideas?

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, string class has a constructor specially for you: new String(char, repeatCount) :)

      Luc Pattyn


      try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }


      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