BUG: Setting Grid Clip Property to Empty Text Box Causes GPFLast reviewed: April 30, 1996Article ID: Q150229 |
The information in this article applies to:
SYMPTOMSIf the Clip property of the Grid control is set equal to the Text property of an empty Text box, a General Protection Fault occurs.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.
WORKAROUNDThe Clip property can be explicitly set to an empty string. If the Text box is empty, set the Clip property of the Grid control to an empty string. If the Text box is not empty, set the Clip property to the Text property. For example, instead of:
Grid1.Clip = Text1.TextThis problem can be avoided by using:
If Text1.Text = "" Then Grid1.Clip = "" Else Grid1.Clip = Text1.Text EndIf MORE INFORMATION
Steps to Reproduce Problem
Private Sub Command1_Click() If Text1.Text = "" Then Grid1.Clip = "" Else Grid1.Clip = Text1.Text EndIf End Sub |
Additional reference words: 4.00 vb4win vb416 buglist4.00 GPF
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |