WD: Character Format Functions Ignore Leading or Trailing Spaces

ID: Q106075

The information in this article applies to:

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          : kbmacro kbprg winword macword word6 word7 word95 
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

Last Reviewed: November 18, 1997