Documentation Error: Array Samples Incorrect
PSS ID Number: Q100393
Article last modified on 07-14-1994

2.00 2.00a 2.00a-CD 2.00b 2.00c

WINDOWS


-------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b,
   2.0c
-------------------------------------------------------------------

Summary:

The following Word for Windows resources contain a documentation
error:

   "Using WordBasic," by WexTech Systems and Microsoft, pages 32 and
    174

   "Dim" topic in the Word for Windows Help menu.

The documentation incorrectly states that the variable name for an
array, assigned using a Dim statement, and the individual array item
names can be two different names. WordBasic requires that you use the
same name for both the variable name and the individual array items.

More Information:

The following incorrect macro code appears on page 32 of "Using
WordBasic":

Dim Days$(7)
Day$(1)="Sunday"
Day$(2)="Monday"

The following is a correct array definition statement:

Dim Day$(7)
Day$(1)="Sunday"
Day$(2)="Monday"

The same kind of error appears on page 174 of "Using WordBasic":

Dim Months$(12)
Month$(1)="January"
Month$(2)="February"

The following is a correct array definition statement:

Dim Month$(12)
Month$(1)="January"
Month$(2)="February"

Reference(s):

"Using WordBasic," by WexTech Systems and Microsoft, pages 32, 174

Additional reference words: 2.00 2.00a 2.00a-CD 2.00b 2.00c docerr doc
winword err online w4wmacro

=============================================================================

Copyright Microsoft Corporation 1994.
