GP Fault Using Item Number Zero in Dialog Box Definition

ID: Q114860

4.00 4.00a 5.00 WINDOWS kbusage

The information in this article applies to:

SYMPTOMS

In Microsoft Excel, if you create a dialog box definition table, and you use zero (0) for one of the dialog item numbers, you receive a general protection (GP) fault when you use the DIALOG.BOX function to display the dialog box.

CAUSE

The GP fault occurs when the item number 0 is included within an Option button group within a Group box definition as in the following example:

   B3: 14  C3: 62  D3:  14  E3: 200  F3: 111  G3: Group
   B4: 11  C4:     D4:      E4:      F4:      G4:
   B5: 12  C5:     D5:      E5:      F5:      G5: Option Button1
   B6:  0  C6:     D6:      E6:      F6:      G6: Option Button2
   B7: 12  C7:     D7:      E7:      F7:      G7: Option Button3

The number 0 is not a valid dialog item number. Valid numbers include 1-24, 101-124, and 201-224.

WORKAROUND

To work around this problem, do not use 0 as an item number in a dialog box definition table. In general, this item number is ignored, and causes items that follow this line in the dialog definition table not to be displayed. The exception is the case described above (that is, when the item number 0 causes a GP Fault).

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

In Microsoft Excel version 5.0, when you use the DIALOG.BOX function to display a dialog box that contains an item with a zero item number, you receive the GP fault immediately, and the dialog box is not displayed.

In Microsoft Excel versions 4.0 and 4.0a, if you use a zero item in a Group box definition, when you use the DIALOG.BOX function to display the dialog box, the dialog box does appear. However, when you choose any of the items in the dialog box, you receive the GP fault.

KBCategory: kbusage KBSubcategory:

Additional reference words: 4.00 4.00a 5.00 gpf

Version           : 4.00 4.00a 5.00
Platform          : WINDOWS

Last Reviewed: September 14, 1996