I'm currently using VS 2005 on my computer and I realized that I can't do:
I'm forced to use a For/Each instead of a For Loop like this:
Is .count LINQ?
Code:
Dim ofd As New OpenFileDialog
Dim str As String
If ofd.ShowDialog = .Ok Then
For i As Integer = 0 to ofd.FileNames.Count - 1
str = ofd.FileName
Next
End If
I'm forced to use a For/Each instead of a For Loop like this:
Code:
Dim ofd As New OpenFileDialog
Dim someString As String
If ofd.ShowDialog = .Ok Then
For Each str As String In ofd
someString = str
Next
End If