|
Summary
Character set of header field.
Description
The FieldCharset property is used to set the character set for encoding in the
OnEncodeField and the OnSetAddrField events. If UseProperty is set to True, the control
will get the field value from the FieldCharset property, otherwise it will get the data
from the Charset parameter. The UseProperty property should normally be set to
False, and the Charset 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 OnEncodeField or OnSetAddrField events.
There is no default value for this property.
Example
Private Sub MIME_OnEncodeField(Value As String, Length As Integer, Charset As Integer,
Encoding As Integer)
If (initial)
Mime.FieldValue = "This file contains:"
Mime.FieldCharset = "us-ascii"
Mime.FieldEncoding = ADDR_NO_ENCODING
initial = False
Else
Mime.FieldValue = "lots of confidential information."
Mime.FieldCharset = "us-ascii"
Mime.FieldEncoding = ADDR_BASE64_ENCODING
End If
End Sub
|