Gotta say it looks like a bug!
Further test reveals it does accept an integer argument as integer:
If the first s(0) could be cleared from memory when s(0) was REDIM'd, Len() might get it's facts straight.
Are there 2 s(0)'s such that Len() gets the first one set up in variable table?
Further test reveals it does accept an integer argument as integer:
Code: (Select All)
Type snd1
l As Integer
r As Integer
End Type
Type snd2
l As _Unsigned _Byte
r As _Unsigned _Byte
End Type
ReDim s(0) As snd2 '1
Print Len(s(0).l) 'expected is 1
' !!!! is there a way to clear a varaible from memory right here???
ReDim s(0) As snd1 '2
Print Len(s(0).l) 'expected is 2
s(0).l = 55
Print s(0).l ' expect 55 OK
Print Len(s(0).l) 'expect 2 what?
If the first s(0) could be cleared from memory when s(0) was REDIM'd, Len() might get it's facts straight.
Are there 2 s(0)'s such that Len() gets the first one set up in variable table?
b = b + ...