Hi,
I'm struggling to write the contents of a dictionary to a message box. Ideally I'd like to write the contents to an XML file, but I'm having difficulty even writing the contents to a message box!
Im using basic code to get me started....
Dim users As Generic.Dictionary(Of Integer, String)
Dim x As New Dictionary(Of Integer, Users)
x.Add("1", New Users("1", "Joe"))
For Each item In x
MsgBox(item)
Next
I have a class created called Users with the required code stubs. But when i try to run the code i get the following error message...
Argument 'Prompt' cannot be converted to type 'String'.
I have tried writing to string but i still get the same error message.
Any help/guidance would be much appreciated!
Many Thanks
I'm struggling to write the contents of a dictionary to a message box. Ideally I'd like to write the contents to an XML file, but I'm having difficulty even writing the contents to a message box!
Im using basic code to get me started....
Dim users As Generic.Dictionary(Of Integer, String)
Dim x As New Dictionary(Of Integer, Users)
x.Add("1", New Users("1", "Joe"))
For Each item In x
MsgBox(item)
Next
I have a class created called Users with the required code stubs. But when i try to run the code i get the following error message...
Argument 'Prompt' cannot be converted to type 'String'.
I have tried writing to string but i still get the same error message.
Any help/guidance would be much appreciated!
Many Thanks