Syntax
Public Function ArrayResize(ByRef Ary As Variant, ByVal newsize As Integer) As Integer
Description
This function is used to set a new size for the first dimensionalarray.
Parameters
Key | Description |
Ary | Array to change its size. Value of type is Variant |
Newsize | New size for the first dimensionl array. Value of type is Integer |
Return value
Returns new size value for the array as Integer.
Sample
Public Sub main() Dim i Dim Size CopyHigh 0, 10, 20, i Size = ArrayResize (i, 200) AlertMessage (size) 'returns 200 End Sub
See Also