Dialog Editor Removes Subscript Numbers from Array

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

Additional query words: 6.0 control arrays number element word6 7.0 word95 word7 winword

Keywords :
Version : WINDOWS:6.0,6.0a,6.0c,7.0
Platform : WINDOWS
Issue type :


Last Reviewed: December 23, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.