[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

Loop through a multidimensional array?

How do I loop through a multidimensional array?

Dim Test(20,20) as String

How can I loop through all 400 items in this array and set a value?

0
Hepen
Asked:
Hepen
1 Solution
 
ZeonFlashCommented:
Dim Test(20, 20) As String

        For i As Integer = 0 To 19
            For j As Integer = 0 To 19
                Test(i, j) = TheValue
            Next
        Next
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now