Microsoft KB Archive/62280

= Mac Hyp: Removing or Clearing a Message Field =

Article ID: 62280

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 Q62280



SUMMARY
The msmail call &quot;RemoveField&quot; removes the occurrence of the field indicated by &quot;index&quot; with the given &quot;ident&quot;, as follows:   msmail(RemoveField, messageRef, ident [, index]) &quot;ident&quot; is a 4-character identification for that field.

If no &quot;index&quot; is specified, the first field with the specified &quot;ident&quot; will be removed. An &quot;index&quot; of negative one (-1) removes all fields with the specified ident.

Note: In Microsoft Mail version 2.00, the &quot;index&quot; parameter should occur in the range between 0 and n-1, where &quot;n&quot; is the number of fields. In Mail version 3.00, the parameter should occur in the range from 1 to n.



MORE INFORMATION
The AddField command can add text to a pre-existing field or create a new (unseen) field to hold the text. RemoveField clears fields that are defined as part of the form, and removes fields that were created with AddField. This function works only on messages that have not been sent.

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

Keywords: KB62280

-

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

© Microsoft Corporation. All rights reserved.