I am having difficulty removing an individual dictionary from an array of dictionaries.
I have an array in memory of a unique id called 'uuid' and an iosimage called 'picture'
I do this so I can capture pictures rapidly into memory and then process them.
The processing is where I am having difficulty. I just want to remove the individual dictionary as I process it.
uuid coming in is from a database record that I want to add the picture to. So it matches to a specific database record that also has the same unique id. So once I have saved the picture to its corresponding database record. I want to remove it from the App.PictureArray
Here is how I am processing through the array:
Dim IntCount as Integer=0 For Each entry as Dictionary in App.PictureArray Dim PictureDict As Dictionary = entry.Clone If uuid= PictureDict.Value("uuid") Then picture=PictureDict.Value("picture") 'Have tried but did not work App.PictureArray.Remove(intCount) End If intCount=intCount+1 Next
Any ideas on a better way to do this?