This one is really perplexing me...
First some working stats...
Intellesense indicates there are 8 elements of the SourcesConfig.S ources.Source object and that the types are derived from the same class (not duplicates, the same class). With the above block the ManageImageAndL atestFolders sub is never called!
However...
The same block of code works just fine
Although the form is different, the two routines above are identical in function. The For Each block, however, does not iterate through the src items (of which there are clearly 8).
I have tried to clean the application(Bui ld -> Clean [Project]).
Any thoughts from anyone? What might I be missing?
I use For Each in lots of places in my code - and because of this anomaly I am afraid I'm doing something wrong that might be affecting much of my work!
First some working stats...
- Visual Studio 2015
- Visual Basic .NET
- Framework 4.6.1
- Windows 10 x64
Code:
For Each src As CommonStructures.Source_Type In SourcesConfig.Sources.Source ManageImageAndLatestFolders(src, ActionEnum.Add) Next
However...
The same block of code works just fine
Code:
For I as Integer = 0 to (SourcesConfig.Sources.Source - 1) ManageImageAndLatestFolders(SourcesConfig.SOurces.Source(I), ActionEnum.Add) Next I
I have tried to clean the application(Bui ld -> Clean [Project]).
Any thoughts from anyone? What might I be missing?
I use For Each in lots of places in my code - and because of this anomaly I am afraid I'm doing something wrong that might be affecting much of my work!
Comment