The information in this article applies to:
SYMPTOMS
If you dimension an array with no elements using a statement such as
Dim Array$(-1), a WordBasic error occurs when you run the macro. This
problem did not occur in Word version 2.x for Windows.
This also means you cannot display an empty list box in a dialog box;
it must always contain one empty element.
STATUSWe are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. WORKAROUNDYou must rewrite your macro so it contains no arrays with 0 elements. For example, use the following statement to dimension an array that contains an extra element:
When you write a new macro, check to be sure your array will not
contain 0 elements.
MORE INFORMATION
An array in WordBasic has as many elements as its last index plus 1,
which means that an array dimmed as 0 actually has one element.
Therefore, Dim Array$(-1) dimensions an array with no elements.
Additional query words: 6.0 winword word6 7.0 word95 word7
Keywords : |
Last Reviewed: December 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |