BUG: Setting Grid Clip Property to Empty Text Box Causes GPF (150229)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
This article was previously published under Q150229 SYMPTOMS
If the Clip property of the Grid control is set equal to the Text property
of an empty Text box, a General Protection Fault occurs.
RESOLUTION
The 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.Text
This problem can be avoided by using:
If Text1.Text = "" Then
Grid1.Clip = ""
Else
Grid1.Clip = Text1.Text
EndIf
STATUS
Microsoft has confirmed this to be an issue in the Microsoft products
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 1/9/2003 |
---|
Keywords: | kbBug KB150229 |
---|
|