\ char and vb [modified]
-
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
-
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
Thanks. Found it and the fix will be uploaded next rev.
cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP