Microsoft KB Archive/106075
WD: Character Format Functions Ignore Leading or Trailing Spaces
The information in this article applies to:
- Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
- Microsoft Word for Windows 95, versions 7.0, 7.0a
- Microsoft Word for the Macintosh, versions 6.0, 6.0.1, 6.0.1a
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.
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.
For a complete list of character formatting WordBasic statements and functions, follow these steps:
- On the Help menu, click Contents.
- Select the Programming With Microsoft Word topic.
- Select the Statements and Functions by Category topic.
- Select the Character Formatting topic.
Additional query words:
Keywords : kbmacro kbprogramming winword macword word6 word7 word95
Issue type : kbprb
Technology : kbHWMAC kbOSMAC kbWordSearch kbWordMacSearch kbWord700Search kbZNotKeyword2 kbWord600Mac kbWord601aMac kbWord601Mac kbWord600 kbWord600a kbWord600c kbWord700 kbWord700a
Last Reviewed: November 5, 2000