Add

The Add method adds an item to a collection.

Syntax

Collection.Add([key][, value])

Parameters
key
The unique key for the item to add. This parameter is optional.
value
The value to set
Example

The following example adds an item to the Receivers collection.

<%
   Mail.Receivers.Add "jim@emilltest.com"
%>

The following example adds an item with a key to the Receivers collection.

<%
   Mail.Receivers.Add "jim", "jim@emilltest.com"
   sJimEmail = Mail.Receivers("jim")
%>
Remarks

An alternative method to add an item is use an explicit key. e.g:
Mail.Receivers("joe") = "joe@emilltest.com"

Applies To

Collection Object



©2001-2015 eMill. All trademarks property of their owners.