Item (All Dundas Upload Collections)

Dundas

Item (All Dundas Upload Collections)

Call this method to retrieve an element from any Dundas Upload collection. This is the default member of all collections.

Syntax

AnyMailerCollection.Item (Index)

The Item 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 Upload collections are zero (0) based.

Remarks

If the Index argument is specified as a number then the item is retrieved via the index of the collection (zero-based). For example, to retrieve the first element in the Files collection you could use the following statement: Set objUploadedFile = Files.Item(0). If a string is specified then the element is retrieved via its key. For a listing of collection keys refer to the following:

  • Files Collection string key = TagName property of the UploadedFile object.

  • Form Collection string key = TagName property of the FormItem object.

This method is the default collection method so you do not have to explicitly declare it. For example, to retrieve the first UploadedFile object in the Files collection you could use the following: Set objUploadedFile = objUpload.Files(0).

Note: if you specify an index which is out of range then an exception will be thrown.

See Also: Count Property