Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21854

VB6, len of UDT does not change after Redim

$
0
0
Hello!
I am confused over the following code snippet:
Why does slask and slask2 show the same value?
The Redim should (as I understand it..) mean that LenB increases with 1000, but it doesn't...

Tia,

/Johan S


Private Type test_UDT
filler As Long
arry() As Byte
filler2 As Long
End Type

Private Sub Form_Load()
Dim testor As test_UDT
Dim slask, slask2
slask = LenB(testor)
ReDim testor.arry(1 To 1000)
slask2 = LenB(testor)
' Why doesn't LenB change??
End Sub

Viewing all articles
Browse latest Browse all 21854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>