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. Other Discussions
  3. Site Bugs / Suggestions
  4. \ char and vb [modified]

\ char and vb [modified]

Scheduled Pinned Locked Moved Site Bugs / Suggestions
com
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.
  • W Offline
    W Offline
    William Winner
    wrote on last edited by
    #1

    So, in one of the answers in the Quick Answers forum (specifically the answer from MASTER at http://www.codeproject.com/Questions/92502/How-do-I-find-the-number-of-files-in-a-drive-in-Vi.aspx[^]) he was typing VB and the formatting treated the / as an escape character. As in:

    Function CountFiles(Optional ByVal dri As String = "C:\", Optional ByVal subDir As Boolean = True) As Integer

    Something in the formatting isn't right here. It appears to be treating the "\" as an escape character in this instance. (and I know he didn't specify a language in that thread, but I did...my code is: <pre lang="vbnet">Function CountFiles(Optional ByVal dri As String = "C:\", Optional ByVal subDir As Boolean = True) As Integer</pre>

    modified on Thursday, July 8, 2010 1:58 PM

    C 1 Reply Last reply
    0
    • W William Winner

      So, in one of the answers in the Quick Answers forum (specifically the answer from MASTER at http://www.codeproject.com/Questions/92502/How-do-I-find-the-number-of-files-in-a-drive-in-Vi.aspx[^]) he was typing VB and the formatting treated the / as an escape character. As in:

      Function CountFiles(Optional ByVal dri As String = "C:\", Optional ByVal subDir As Boolean = True) As Integer

      Something in the formatting isn't right here. It appears to be treating the "\" as an escape character in this instance. (and I know he didn't specify a language in that thread, but I did...my code is: <pre lang="vbnet">Function CountFiles(Optional ByVal dri As String = "C:\", Optional ByVal subDir As Boolean = True) As Integer</pre>

      modified on Thursday, July 8, 2010 1:58 PM

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      Thanks. Found it and the fix will be uploaded next rev.

      cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

      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