Field Format Switch Case Conversion TypesLast reviewed: February 6, 1998Article ID: Q80307 |
The information in this article applies to:
SUMMARYMicrosoft Word for Windows 2.0 have 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 are 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 "word" \* upper}. Result: WORD lower Converts all characters in the field's result to lowercase. Example: {quote "WORD" \* lower}. Result: word. firstcap Converts the first word in the field's result to initial capital. Example: {quote "word document" \* 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 "word document processing" \* caps}. Result: Word Document Processing. REFERENCES"Microsoft Word for Windows User's Guide," version 2.0, pages 643, 762 "Microsoft Word for Windows User's Reference," version 1.0, pages 112-114.
|
KBCategory:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |