Link Search Menu Expand Document

Item Let Accessor

Description

Replaces the array item at the specified index with the passed element. If the Index argument exceeds the current upper bound of the stored array, the element will be pushed onto the end of the array at the next available index (this changes the length and upper bound of the stored array). If the index argument is less than the LowerBound (base index) of the stored array the element will be inserted at the beginning of the array and the existing elements shifted up to accomodate the new element (this changes the length and upper bound of the stored array).

Syntax

expression.Item(Index) = Element

Or

expression(Index) = Element

Parameters

Name
Index
Type
Long
Necessity
Required
Description
The index of the element in the array to replace.

Name
Element
Type
Variant
Necessity
Required
Description
The element to be inserted into the array at the specified index.

Returns

None

Back to Item overview