Microsoft KB Archive/58558

= Mac Hyp: AddField Adds Information to Nonstandard Form Fields =

Article ID: 58558

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 Q58558



2.00 3.00 MACINTOSH



SUMMARY
To add information to a form with nonstandard fields, use the following syntax:

msmail (addField, messageRef, data, ident [,onlyOne] [,type])

For standard form types, use the simpler commands, such as addSubject and addBody.

An application-specific message can use any 4-byte (4 character) value for a field identification (ident). Multiple fields can be added with the same &quot;ident&quot;. A list of standard field idents can be found in the HyperCard SDK version 3.00 documentation stack under &quot;Advanced Mail Information.&quot;

For more information on field idents, query on the following words:

getField and idmap

If only one field with a particular &quot;ident&quot; is allowed in a given message, pass a value of &quot;true&quot; in &quot;onlyOne&quot; when adding that field to the message. When &quot;onlyOne&quot; is set, addField removes from the message any fields with the specified ident before adding the contents of data. If no value is passed for &quot;onlyOne&quot;, it defaults to &quot;true&quot;.

&quot;messageRef&quot; is a reference to a selected message obtained by making a call to the msmail function using a parameter that returns a message reference.

&quot;data&quot; is the data to be added to the specified field of the specified message.

The &quot;type&quot; parameter lets advanced users specify the type of the field to be added. This must be passed only if you are creating nontext fields that do not occur on the send screen for this message type. In all other cases, the type is filled in automatically.

This information is taken from the &quot;Microsoft Mail HyperCard Interface Documentation.&quot; For additional information, see the getField function in the documentation stack.

Keywords: KB58558

-

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

© Microsoft Corporation. All rights reserved.