Fistly, I'm not sure if you're doing this right.
Looks like you're using managed C++ in which case you should be using
SortedList^
instead of
SortedList*
and also
gcnew
instead of
new
.
You should be able to get the value inside the for loop using -
brandList->Values[i];
This would of course return a string in the format
"BRText(BRCode)"
like you inserted into the list.
You will then need to split it into separate strings using
String::Split Method (array<char>^)[
^].