If I create a method and as a parameter I pass in a dictionary, are my local modifications to the passed in dictionary retained on the method’s exit, or do I need to pass the dictionary ByRef?
MyMethod(theDictionary As Dictionary, count As Integer)
or
MyMethod(ByRef theDictionary As Dictionary, count As Integer)
I’m not getting the results I’m expecting after locally modifying the dictionary contents using the intrinsic method and before I start making modifications to code, I want to make certain that I’m at least calling the method and passing the dictionary properly.
Okay, so I don’t know if it’s SUPPOSED to be different, but passing the dictionary ByRef instead of intrinsically has sorted the oddity that I was witnessing.