Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/106075

From BetaArchive Wiki

WD: Character Format Functions Ignore Leading or Trailing Spaces

Q106075



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





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 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
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.