Access/VBA Library

Merge Method

Merges another array to the array.

Syntax

array_.Merge( AnArray )
Parameters
Name Type Description
array_   The name of an object of type array_
AnArray Array_ Required. A Array_ to be merged with the array.
Example
  Dim x1 As New Array_
  Dim x2 As New Array_

  x1.FromArray (Array(1, 2, 3, 4, 5))
  x2.FromArray (Array(6, 7, 8, 9, 10))

  x1.Merge(x2)
  ' Result:
  'Array (
  ' [1] = > 1
  ' [2] = > 2
  ' [3] = > 3
  ' [4] = > 4
  ' [5] = > 5
  ' [6] = > 6
  ' [7] = > 7
  ' [8] = > 8
  ' [9] = > 9
  ' [10] = > 10
  ')