Results 1 to 9 of 9

Thread: Reading DictionaryEntry problem

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2009
    Posts
    6

    Reading DictionaryEntry problem

    I have a collection with DictionaryEntires. The below code enumerates all of the values as long as they are strings. How can it be modified so it does not throw and error when it runs across other vaule types like binary()?

    vb.net 2008 Express Code:
    1. For Each tKey As DictionaryEntry In Result0.Properties()
    2.                 TBoxOutput.AppendText(tKey.Key.ToString() & vbNewLine)
    3.                 For Each mystring As String In tKey.Value
    4.                     TBoxOutput.AppendText(mystring & vbNewLine)
    5.                 Next

    PS: I will not know what the contents of the DictionaryEntry will be.

    ty for reading and thinking

    windowwasher80
    Last edited by windowwasher80; Aug 7th, 2009 at 03:16 PM. Reason: answer given

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width