DocErr: Online Help Shows SET Field Incorrectly

ID: Q117696


The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c


SUMMARY

The Word 6.0 for Windows Readme Help file incorrectly shows the following sample SET field:

{if {mergefield state} = "CA" {set phone "1-415-555-1234"} {set phone "1-415-555-4237}}
Help ought to show:
{set phone {if {mergefield state} = "CA" "1-415-555-1234" "1-415- 555-4237"}}
The first example is wrong because fields update from left to right, and from the inside to the outside. When two fields are placed inside an IF field, the left-most field is updated first, and its result is replaced by the second field. Thus, the IF field will use the most recent value of the SET field. For additional information, please see the following article in the Microsoft Knowledge Base:
Q97791 SET Fields Within IF Field Evaluate Incorrectly

Additional query words: 6.00a docerr doc err documentation error word6 6.00c winword on-line online help incorrect set field

Keywords :
Version : WINDOWS:6.0,6.0a,6.0c
Platform : WINDOWS
Issue type :


Last Reviewed: December 28, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.