|
Summary
Decode a file using BinHex format.
Syntax
| Boolean BinHexDecode (Src, Dest) |
Description
BinHex 4.0 is a popular means of encoding Macintosh files for transmission via Internet
mail. Files on the Macintosh consists of two parts, data fork and resource fork.
To decode a file using BinHex format set the Src parameter to the source path
and filename. The Dest parameter must be set to the destination path and filename.
BinHex decoding obtains some more information about the data file. If successful, this
method sets the BinHexResource, BinHexType, BinHexCreator, BinHexFlag and FileName
properties.
If an error occurs, then the OnError event will be fired. The application should set a
flag in the OnError event, so that it can determine if the action was successful. In
addition, the application may want to display an error message in the OnError event to
inform the user of the error. Please check the reference page of the OnError event for a
complete listing of error codes.
Calling this method is equivalent to setting the Action property to
ACTION_BINHEX_DECODE.
Return Value
The BinHexDecode method returns True if successful; otherwise, it returns False.
Example
Result = Mime.BinHexDecode ("c:\temp\file.1",
"c:\temp\file.2")
If Result = True Then
MsgBox "Encoded successfully", 64, "Sample Program"
End If
|