VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Nested Arrays Solution

by ULLI (93 Submissions)
Category: Data Structures
Compatability: VB Script
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

Example

Rate Nested Arrays Solution

Option Explicit
Private Type tNested
  Blah      As String
  Blabla     As Long
End Type
Private Type tSomething
  Stuff      As String
  MoreStuff    As Long
  aNested()    As tNested
  Whatever    As Integer
End Type
Private aSomething() As tSomething
Private Sub Form_Click()
 Dim i As Long
  ReDim aSomething(1 To 500)
  For i = 1 To 500
    ReDim aSomething(i).aNested(1 To 10)
  Next i
  
  aSomething(12).aNested(7).Blah = "Hallo Michael"
  
  Debug.Print aSomething(12).aNested(7).Blah
End Sub

Download this snippet    Add to My Saved Code

Nested Arrays Solution Comments

No comments have been posted about Nested Arrays Solution. Why not be the first to post a comment about Nested Arrays Solution.

Post your comment

Subject:
Message:
0/1000 characters