Article ID: 147668
Article Last Modified on 10/30/2003
Type MyUDT
x As String * 5 'size of 10 or 5
y As String 'size of 4
z (1 to 5) As Byte 'size of 5
End Type
Private Sub Form_Click()
Dim test As MyUDT
test.x = "hello"
test.y = "world"
test.z(1) = 64
test.z(2) = 65
test.z(3) = 66
test.z(4) = 67
Print LenB(test) 'returns 21
Print Len(test) 'returns 14
End Sub
Keywords: kb32bitonly kbprogramming kbprb KB147668