Advertisement
ASP_Volume2 Data Structures #28680

Nested Arrays Solution

Example

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
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
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine