I would like to use a pointer to redim an array like this test code:
Usually i am using alternative code but i would like to do it this way if possible.
Code:
Type xxttt h As Long Moreparams1 as long Moreparams2 as long End Type Function Test2( ByRef x As xxttt ) As Long Dim h() As Long At x.h ReDim Preserve h( 0 To 100 ) End Function Function Test() As Long Dim h( 0 To 0 ) As Local Long Dim x As xxttt x.h = VarPtr( h() ) Test2( x ) MsgBox Str$( UBound( h ) ) End Function
Comment