Remove Method (All Dundas Mailer collections)

Dundas

Remove Method (All Dundas Mailer collections)

Call this method to remove one (1) element from any Dundas Mailer collection.

Syntax

AnyMailerCollection.Remove (Index)

The Remove method syntax has the following parts:

Part

Description

Index

This argument can be either a number (integer or long data type) or a string key. All of the Dundas Mailer collections are zero (0) based.

Remarks

To identify the collection item to be removed you can specify either a number (integer or long data types) or a string key for the Index argument. If you specify a number then the index of the element will be used (the index being zero-based). For example, the statement "TOs.Remove 0" will remove the first element in the TOs collection. If a string key is specified then the element to be removed will be identified by its key. Refer to the following for a listing of the various collection keys:

  • TOs Collection string key = Address property

  • CCs Collection string key = Address property

  • BCCs Collection string key = Address property

  • Attachments Collection string key = FileName property

  • HTMLEmbeddedObjs Collection string key = FileName property

  • CustomHeaders Collection string key = Name property

  • DNSServers Collection string key = Name property

  • SMTPServers Collection string key = Name property

For example, to remove an email address named "[email protected]" from the TOs collection you would enter: TOs.Remove "[email protected]".

See Also: Count Property | Item Method | Clear Method