How to print entire array or dictionary or list in single message box

how to print entire array or dictionary or list in single message box. I need to print entire array or dictionary or list in single message box pls help

@Vinay_Gite1

Hope this helps:

Hi @Vinay_Gite1

For Array name as MyArray
MessageBox = String.Join(Environment.NewLine, MyArray)

For List name as MyList
MessageBox = String.Join(Environment.NewLine, MyList.ToArray())

For Dict name as MyDict
MessageBox = String.Join(Environment.NewLine, MyDict.Select(Function(keyvalue) keyvalue.Key & ": " & keyvalue.Value))

Hope it will helps you :slight_smile:
Cheers!!

1 Like

@Vinay_Gite1
It it helps you: Mark my answer as Solution :slight_smile:

Thanks
Nawazish

Thanks Nawazish It was really helpful

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.