HeaderFields Collection : Item Method |
Visual Basic |
---|
Public Function Item( _ ByVal Index As Long _ ) As String |
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):
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