Iterating through a DynaDictionary
Posted: Wed May 08, 2013 6:35 am
Hi Guys,
Just had a quick question on whether someone knows how I could iterate through a DynaDictionary to find a certain data record and then update the value within that DynaDictionary data record? I was wondering whether I should use an iterator or a foreach loop? For example, if I have a DynaDictionary that stores a string value (i.e. a person's name) and an integer (i.e. their age), how can I iterate through the DynaDictionary for a certain name (i.e. John Smith) just so that I can update their age (i.e. from 22 to 23)?
Thanks,
Omash
Just had a quick question on whether someone knows how I could iterate through a DynaDictionary to find a certain data record and then update the value within that DynaDictionary data record? I was wondering whether I should use an iterator or a foreach loop? For example, if I have a DynaDictionary that stores a string value (i.e. a person's name) and an integer (i.e. their age), how can I iterate through the DynaDictionary for a certain name (i.e. John Smith) just so that I can update their age (i.e. from 22 to 23)?
Thanks,
Omash