Dialog Editor Removes Subscript Numbers from Array

Last reviewed: July 30, 1997
Article ID: Q105820
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0
  • Microsoft Word Dialog Editor, version 6.0

SYMPTOMS

If you copy a WordBasic dialog box definition that contains an array and paste it in the Word Dialog Editor, the subscript numbers in the array are missing when you paste the dialog definition back in your macro.

CAUSE

The Word Dialog Editor does not recognize the subscript numbers (also referred to as index numbers) in an array, so it removes them. When you paste the dialog definition back into your macro, you must manually add the subscripts back to the array.

STATUS

Microsoft has confirmed this to be a problem in the Word Dialog Editor supplied with Word version 6.0 for Windows and Word version 7.0 for Windows 95. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

For example, you can copy the following dialog box definition and paste it in Word Dialog Editor:

   Begin Dialog UserDialog 727, 191, "Test"
      OptionGroup  .OptionGroup1
         OptionButton 21, 28, 112, 16, option$(0)
         OptionButton 21, 45, 112, 16, option$(1)
         OptionButton 21, 62, 112, 16, option$(2)
   End Dialog

If you copy the resulting dialog box and paste it back into your Word for Windows macro, it appears as follows (the subscript numbers in each identifier are missing):

   Begin Dialog UserDialog 727, 191, "Test"
      OptionGroup  .OptionGroup1
         OptionButton 21, 28, 112, 16, option$
         OptionButton 21, 45, 112, 16, option$
         OptionButton 21, 62, 112, 16, option$
   End Dialog

Kbcategory: kbusage kbmacro KBSubcategory:


Additional query words: 6.0 control arrays number element word6
6.0a 6.0c 7.0 word95 word7 winword
Version : 6.0 6.0a 6.0c 7.0
Platform : WINDOWS


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.