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

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