WD: Character Format Functions Ignore Leading or Trailing Spaces

Last reviewed: November 17, 1997
Article ID: Q106075
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0, 7.0a
  • Microsoft Word for the Macintosh, version 6.0, 6.0.1, 6.0.1a

SYMPTOMS

WordBasic character formatting functions, such as Hidden(), Bold(), Italic(), and Underline(), ignore leading and trailing spaces when they evaluate a text string.

For example, if the text in a selection is formatted as hidden, but the spaces at the beginning or end of the selection are not formatted as hidden, the Hidden() function returns 1 to indicate that the entire selection is hidden, even though there are unhidden spaces at the beginning or end of the selection.

STATUS

This functionality is consistent with the functionality of other features in Word for Windows, such as the Format Font dialog box and Formatting toolbar. All these Word features disregard trailing and leading spaces when they evaluate a selection.

MORE INFORMATION

For a complete list of character formatting WordBasic statements and functions, follow these steps:

  1. On the Help menu, click Contents.

  2. Select the Programming With Microsoft Word topic.

  3. Select the Statements and Functions by Category topic.

  4. Select the Character Formatting topic.


Additional query words:
Keywords : macword winword word6 word7 word95 kbmacro kbprg
Version : MACINTOSH:6.0,6.0.1,6.0.1a;WINDOWS: 6.0a,6.0c,7.0,7.0a
Platform : MACINTOSH WINDOWS
Issue type : kbprb


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: November 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.