T
Tom Leylan
Does anybody have any idea why my version of VS.Net doesn't accept the
following syntax?
For Each f As FileInfo In d.GetFiles()
sz += f.Length
Next f
I always have to explicitly declare the variable as follows:
Dim f As FileInfo
For Each f In d.GetFiles()
sz += f.Length
Next f
Even the example given in the MSDN online help on For... Next doesn't
compile without an error. I looked around for some setting but there
doesn't seem to be one and I seem to have all the updates installed.
following syntax?
For Each f As FileInfo In d.GetFiles()
sz += f.Length
Next f
I always have to explicitly declare the variable as follows:
Dim f As FileInfo
For Each f In d.GetFiles()
sz += f.Length
Next f
Even the example given in the MSDN online help on For... Next doesn't
compile without an error. I looked around for some setting but there
doesn't seem to be one and I seem to have all the updates installed.