Microsoft KB Archive/62079

= Mac Hyp: Initializing a New Message =

Article ID: 62079

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Mail Software Development Kit (SDK) for HyperCard 2.0
 * Microsoft Mail Software Development Kit 3.0

-



This article was previously published under Q62079



SUMMARY
The command to initialize memory allocation for a new message is as follows: msmail(createMessage [, type]) => messageRef createMessage allocates and initializes a new and empty message. If successful, a message reference number is returned. This can be passed to other routines to manipulate this particular message.

The default message type is &quot;Mess&quot; or the standard Note form. To create other types of messages, put the correct four-character form ID in the type parameter.



MORE INFORMATION
To convert the two-character IDs used by the Microsoft Mail Form Designer to the four-character IDs used by createMessage, add the characters &quot;Me&quot; to the beginning of the two-character ID. For example, the Phone message form has the two-character ID &quot;sp&quot;, so to create a Phone message, use the following command: put msmail (createMessage, &quot;Mesp&quot;) into phoneMessage &quot;phoneMessage&quot; is any HyperCard container.

For more information on message types, query on getMessageType.

This information is taken from the &quot;Microsoft Mail HyperCard Interface Documentation.&quot;

Keywords: KB62079

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.