BUG: Text Box Value Does Not Change If ControlSource Is .NULL. (180615)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q180615 SYMPTOMS
When the ControlSource property of a text box control is set to the custom
property of a form and the custom property is .NULL., the text in the
control cannot be changed. If the text in the control is edited, the text
changes to .NULL. when the control loses focus.
RESOLUTION
Change the class definition in the code below to add the KeyPress method as
follows:
DEFINE CLASS NewTextBox AS textbox
PROCEDURE KeyPress
LPARAMETERS nKeyCode, nShiftAltCtrl
*-- Once the text has changed, set the custom
*-- property of the form to the text box.
ThisForm.custom_prop = This.Value
ENDPROC
ENDDEFINE
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbBug kbcode kbprb KB180615 kbAudDeveloper |
---|
|