Access/VBA Library

Fill Method

Fills the array with values.

Syntax

array_.Fill( Count, Value )
Parameters
Name Type Description
array_   The name of an object of type array_
Count Integer Required. Number of elements the array should contist of.
Value Variant Required. The value of the elements to be added.
Example
  Dim x As New Array_

  x.Fill 3, "Default value"
  ' Result :
  'Array (
  ' [1] = > Default value
  ' [2] = > Default value
  ' [3] = > Default value
  ')