Field Format Switch Case Conversion Types

Last reviewed: February 6, 1998
Article ID: Q80307
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 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:
KBSubcategory:
Additional query words: 1.0 1.0 1.1 1.10 1.1a 1.10a 2.0 word6
winword 6.0 6.0a 6.0c winword2
Version : 1.x 2.x 6.0 6.0a 6.0c
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 6, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.