Microsoft KB Archive/59927

= Mac Hyp: Accessing Resources or Data in Nonstandard Fields =

Article ID: 59927

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 Q59927



SUMMARY
To access information stored in nonstandard message types in Microsoft Mail version 2.0, use the following syntax: msmail(GetField, messageRef, ident [, index]) => data For normal message types, the simpler commands, such as getSubject and getBody, can be used instead.

getField returns the contents of the nth occurrence of the field, as specified by &quot;index,&quot; with the given ident. For fields that are only allowed to occur once in a given message, no index needs to be passed. The first field in a message has index 0 (zero) in Mail 2.0 and index 1 in Mail 3.0 (see &quot;Note&quot; below for details). This allows for multiple resources of the same type (&quot;ident&quot;) to be sent with one message. For more information, see the documentation on addField.

&quot;ident&quot; is a 4-character type identification for that handle, such as &quot;ICON&quot;, &quot;CODE&quot;, and &quot;snd &quot;, or a 4-character field name identification for the field, such as &quot;PHON&quot; (the phone number on the phone form) or &quot;T001&quot; on a custom form.

&quot;index&quot; is a number that directs the command to access a particular occurrence of the specified field or resource.

To find out which idents are assigned to nonstandard objects on custom forms, use the following syntax:

show background field idmap

Type this in the message box on the Send screen or Read screen of the form's stack. A field will display the mapping between HyperCard field names and Mail idents. There is also a list of the standard idents.

Note: getField is not completely compatible between versions; the &quot;index&quot; default for the first field in Mail 2.0 is 0 (zero), while the default for the first field in Mail 3.0 is 1 (one). For additional arguments, see getField in the documentation for Mail 3.0.

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

Keywords: KB59927

-

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

© Microsoft Corporation. All rights reserved.