I'm no pro programmer but I have never come across the term 'jagged array' until now. As far as I can tell it's an array of arrays which you could create in VB6 with a UDT.I think it fits the brief of being jagged but I doubt the structure in memory will be the same, maybe worth a shot though.Code:Option Explicit Private Type tDblArray Arr() As Double End Type Private Sub Form_Load() Dim D() As tDblArray ReDim D(2) ReDim D(0).Arr(1) D(0).Arr(0) = 1.23456 D(0).Arr(1) = 2 ReDim D(2).Arr(3) D(2).Arr(0) = 1 D(2).Arr(1) = 2 D(2).Arr(2) = 3.45678 End Sub
Can a Jagged array hold multiple data types or just one? Is it possible to alter the dimensions of a jagged array once declared?




Reply With Quote