barrykellett
Programmer
The below snippet of code:
If includeFiles Then
For Each pattern As String In filePattern.Split(";"c)
al.AddRange(dirInfo.GetFiles(pattern))
Next
End If
Gives the error:
Compiler Error Message: BC30451: Name 'pattern' is not declared.
Source Error:
Line 39: If includeFiles Then
Line 40: ' a distinct search for each pattern in the list
Line 41: For Each pattern As String In filePattern.Split(";"c)
Line 42: al.AddRange(dirInfo.GetFiles(pattern))
Line 43: Next
I got the code here: Can someone please help me get this working
If includeFiles Then
For Each pattern As String In filePattern.Split(";"c)
al.AddRange(dirInfo.GetFiles(pattern))
Next
End If
Gives the error:
Compiler Error Message: BC30451: Name 'pattern' is not declared.
Source Error:
Line 39: If includeFiles Then
Line 40: ' a distinct search for each pattern in the list
Line 41: For Each pattern As String In filePattern.Split(";"c)
Line 42: al.AddRange(dirInfo.GetFiles(pattern))
Line 43: Next
I got the code here: Can someone please help me get this working