Syntax
Public Function ArrayCopy(ByRef dst_array As Variant, ByRef src_array As Variant) As Boolean
Description
This function is used to copy the element in a given array to anotherarray.
Parameters
Key | Description |
dst_array | Array to copy the src_array to. Value of type is Variant |
Src_array | Array to be copied to. Value of type is Variant |
Return value
Returns true if successful, otherwise returns false.
Sample
Public Sub main() Dim i Dim array2 (20) CopyHigh 0, 10, 20, i ArrayCopy array2, i AlertMessage (array2 (1)) End Sub
See Also