Access/VBA Library

Shift Method

Shifts an element off the beginning of array.

Syntax

array_.Shift()
Parameters
Name Type Description
array_   The name of an object of type array_
Example
  Dim x As New Array_
  Dim var

  var = x.FromArray(Array(1, 2, 3)).Shift()
  ' Result:
  'Array (
  ' [1] = > 2
  ' [2] = > 3
  ')
  'var contains 1