Item Property


Returns a FormFile object from the collection.

Index parameter specifies the index of the element in the collection. If Index is out of range, automation error occurs.

Item is the default property of the collection.


Value Type: MailBee.FormFile
Parameters:  
Index As Long Index of the element to return. Allowed range is: 1 <= Index <= FormFile.Count  
Remarks: This property is read-only

Usage example:

' This sample writes the name of the last file element existed in HTML-form

<% Set Uploader = Server.CreateObject("MailBee.Uploader")
Uploader.ParseRequest Request.BinaryRead(Request.TotalBytes)
If (Uploader.FormFiles.Count <> 0) Then
   Set FormFile = Uploader.FormFiles(Uploader.FormFiles.Count)
   Response.Write FormFile.Name
End If %>

See Also:

Count Property | Uploader Object


Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.