Microsoft KB Archive/80262

{|
 * width="100%"|

Description of Formatting Switches in Word Field Codes

 * }

Q80262

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

-

SUMMARY
Microsoft Word for Windows has three types of format switches that are used in a field code to format the result of the field: case conversion, number conversion, and character formatting. The following table lists case conversion format names, using the QUOTE field to illustrate.

  Switch     Description and Example --

upper     Converts all characters in the field's result to              uppercase. Example: {quote &quot;word&quot; \* upper}. Result: WORD

lower     Converts all characters in the field's result to              lowercase. Example: {quote &quot;WORD&quot; \* lower}. Result: word.

firstcap  Converts the first word in the field's result to initial capital. Example: {quote &quot;word document&quot; \* firstcap}. Result: Word document.

Firstcap only works when text is all lower case to begin with. If text is all upper case to begin with you must include the lower switch before the firstcap switch. Example: {MERGEFIELD name \*lower \*firstcap} Result: RICHARD becomes Richard

caps      Converts all words in the field's result to initial capitals. Example: {quote &quot;word document processing&quot; \* caps}. Result: Word Document Processing.