Add

concerns

The Add function adds a value to the Collection object.

If a value is added to the collection using a numeric index, it should be noted that the smallest index is 1.

 

Syntax

Add(Item, [Key], [Before], [After])

Return value

None

Parameter

Use

Name

Type

Passing

Description

Required

Item

Variant

ByVal

A value to be added to the Collection object

Optional

Key

Variant

ByVal

A key term (string) or index (numeric) under which to store a value

Optional

Before

Variant

ByVal

A key term or index that determines if the value should be stored immediately before the Before key (string or numeric)

It is not possible to specify Before and After at the same time

Optional

After

Variant

ByVal

A key term or index that determines if the value should be stored immediately after the After key (string or numeric)

It is not possible to specify Before and After at the same time