Keith Howard
Active member
- Joined
- Jan 28, 2010
- Messages
- 28
- Programming Experience
- 5-10
Hello.
Do you know how to declare a variable that can hold the result of a call to GetFiles?
I don't know how to do this, so I am using the following verbose/duplicative version:
Dim l_v_String_FoundFile As String
If My.Computer.FileSystem.GetFiles("A:\u_A\u_W", FileIO.SearchOption.SearchAllSubDirectories, l_v_String_FileMask).Count = 1 Then
l_v_String_FoundFile = My.Computer.FileSystem.GetFiles("A:\u_A\u_W", FileIO.SearchOption.SearchAllSubDirectories, l_v_String_FileMask).Item(0)
End If
Thanks.
Keith
Do you know how to declare a variable that can hold the result of a call to GetFiles?
I don't know how to do this, so I am using the following verbose/duplicative version:
Dim l_v_String_FoundFile As String
If My.Computer.FileSystem.GetFiles("A:\u_A\u_W", FileIO.SearchOption.SearchAllSubDirectories, l_v_String_FileMask).Count = 1 Then
l_v_String_FoundFile = My.Computer.FileSystem.GetFiles("A:\u_A\u_W", FileIO.SearchOption.SearchAllSubDirectories, l_v_String_FileMask).Item(0)
End If
Thanks.
Keith