|
Summary
To send data in the OnAppend event in the J++ programming environment, it must be assigned to this property.
Description
The SendData property is used to send data in the OnAppend event. If UseProperty is set to True, the control will get the data to send from the SendData property, otherwise it will get the
data from the Buffer parameter. The UseProperty property should normally be set to False, and the Buffer parameter should be used instead of this property. See the UseProperty for
information on when to use this property.
If used this property should be set in the OnAppend event. There is no default value for this property.
Example
Private Sub Imap_OnAppend(Buffer As String, Length As Long)
' Get message data to Append to a mailbox
In response to the append method
If (m_initAppend) Then
'open the message source file
Length = FileLen(Filename)
Open Filename For Input As #3
'read from the file and set senddata to file contents
Imap.SendData = Input(Length, #3)
m_initAppend = False
Close #3
Exit Sub
Else
Imap.SendData = "" End If
End Sub
|