Array dimension ubound

' dimensions a two-dimensional array with the given ubound
' IN: ub1 - Integer of the ubound for 1st dimension
' IN: ub2 - Integer of the ubound for 2nd dimension
' OUT: array_dim2 - the new array
Function array_dim2(ByVal ub1, ByVal ub2)

Dim arr : ReDim arr(ub1, ub2)

array_dim2 = arr

End Function

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License