2

I am having a little issue with the function Z to copy the data from dictionary into an array.. how can I fix this since dicValues is dimensional?

Dim dicValues(24) As Dictionary(Of String, Long)

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    For Index = 1 To 24
        dicValues(Index) = New Dictionary(Of String, Long)
    Next
End Sub

issue here:

Dim arr As Array = dicValues.[Select](Function(z) z.Value).ToArray()

1 Answer 1

2

use dicValues(1) like this

Dim arr As Array = dicValues(1).[Select](Function(z) z.Value).ToArray()
Sign up to request clarification or add additional context in comments.

1 Comment

perfect, this whole time I thought the issue was in the Z function

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.