Documentation Error: WordBasic ViewNormal and ViewOutline

Last reviewed: July 30, 1997
Article ID: Q81438
The information in this article applies to:
  • Microsoft Word for Windows versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c

SUMMARY

There is a documentation error on page 329 of the "Using WordBasic" book and in Microsoft Word for Windows version 2.0 Help. This documentation error concerns the value returned by the function form of the following WordBasic commands:

   ViewNormal()
   ViewOutline()

The function form of these commands should return "-1" if the view is active and "0" (zero) if the view is not selected. The following syntax demonstrates the function form of these commands.

   n=ViewNormal()
   n=ViewOutline()

MORE INFORMATION

The following macro demonstrates use of the function form for the ViewNormal and ViewOutline macro commands. This macro prints a message to the status bar that indicates whether or not Normal is chosen on the View menu.

   Sub MAIN
   n = ViewNormal()
   If n = - 1 Then Print "The Normal View is Active "
   If n = 0 Then Print "The Normal View is not Active"
   End Sub

"Using WordBasic"

On page 329 of the "Using WordBasic" book, the Remarks paragraphs in the ViewNormal and ViewOutline sections should read as follows:

   Value        Explanation
   -----        -----------

     0          If normal/outline view is off
    -1          If normal/outline view is on

Help Menu

To access the Help menu screens that contain this documentation error, use the following steps:

  1. From the Help menu, choose Help Index.

  2. Select the WordBasic Programming Language jump text.

  3. From the WordBasic Programming Language window, select the ViewNormal and ViewOutline jump text.

REFERENCES

"Using WordBasic," by WexTech Systems and Microsoft, page 329


KBCategory: kbmacro
KBSubcategory: kbhelp
Additional query words: manual doc err docerr winword2
winword 2.0 2.0a 2.0a


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