3,970 questions
Try this kind of loops:
for each( auto p in _dictionary )
{
int key = p.Key;
String^ value = p.Value;
. . .
}
To display the values, probably it is possible to use "binding" too.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi friends.
I manually populated a dictionary <int,String^> with three pairs of values. I'm wanting to show this data in listView. But inside the for each has the word var, which apparently doesn't exist in C++; How to replace this var word so that the routine works?
Define the dictionary like this:: Dictionary<int, String^>^ _dictionary = gcnew Dictionary<int, String^>;
Follow the code below:
Try this kind of loops:
for each( auto p in _dictionary )
{
int key = p.Key;
String^ value = p.Value;
. . .
}
To display the values, probably it is possible to use "binding" too.
Hi Viorel.
Congratulations.
Worked perfectly.
Again, thank you very much.