How to extract Value from Dictionary?

Hi, I’m trying to use the Value of the Dictionary to compare with a Variable.

Example:
PlaceOfReg = United Kingdom
SellerRegion = United Kingdom

If both matches, then continue.

It’s not successful currently and I’m not sure what syntax to use.

Appreciate your help here.

Hi,

Can you try the following expression?

RegionDict(PlaceOfReg).Equals(SellerRegion)

Regards,

I tried this earlier. But for some strange reason, it still doesn’t match.

Is there a way I can print the results? I tried using the message box to print it as well but it didn’t work.

image

Hi,

Can you try to check character code of each string using the following expression?

String.Join(",",SellerRegion.Select(Function(c) AscW(c).ToString))

String.Join(",",RegionDict(PlaceOfReg).Select(Function(c) AscW(c).ToString))

img20220110-a3

Regards,