Dart Smtp, Pop, Imap Controls
Item Method
Specifies a header field by position in the collection.
Description
Access to the collection by index.
Syntax
Visual Basic
Public Function Item( _
   ByVal Index As Long _
) As String
Parameters
Index
Specifies a header field by position in the collection.
Return Value
The requested header field.
Remarks

Error Codes

This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):

Example
Private Sub Command1_Click()
	Dim Msg As New Message, S As String
	Msg.Load "C:\NewTest.msg"
	S = Msg.Header.Item(1) ' explicit use of Item method
	S = Msg.Header(1) ' implicit use of Item method
	Text1.Text = S
End Sub
See Also

HeaderFields Collection  | HeaderFields Members


PowerTCP SSL for ActiveX Documentation Version 2.2.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic