Dart Smtp, Pop, Imap Controls
EncodeBuf Method
String or Byte array. Data to be encoded.
String or Byte array. Buffer to receive the encoded result.
Type of encoding to apply.
Description
Encode a buffer.
Syntax
Visual Basic
Public Sub EncodeBuf( _
   ByVal SourceBuf As Variant, _
   ByRef DestBuf As Variant, _
   ByVal CodingType As CodingConstants _
) 
Parameters
SourceBuf
String or Byte array. Data to be encoded.
DestBuf
String or Byte array. Buffer to receive the encoded result.
CodingType
ValueDescription
msgBase64Base 64
msgBinHex40BinHex 4.0
msgEucJpEucJp
msgIso2022JpIso-2022Jp
msgQuotedPrintableQuoted Printable
msgShiftJisShiftJis
msgUTF7UTF 7
msgUTF8UTF 8
msgUUEncodeUUENCODE
Type of encoding to apply.
Remarks

This function is provided to support isolated encoding requirements such as header label generation. This method does not affect the Message Object.

If DestBuf specifies a dimensioned Byte array or a non-empty String, it is redimensioned and filled with encoded data that may contain embedded nulls. If DestBuf specifies an undimensioned Byte array or empty String, it is dynamically expanded and filled. DestBuf must not be a fixed length String (String*100 will not work).

Error Codes

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

See Also

Message Object  | Message Members


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