FIX: Referencing This.Value in Editbox Refresh Causes Error (187274)
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
This article was previously published under Q187274 SYMPTOMS
Referencing This.Value property in the Refresh event
of the Editbox object causes a memory protection error in Visual FoxPro. Under Windows 95, an
application error appears indicating an invalid page fault occurred. in
Windows NT 4.0, a Dr. Watson for Windows NT dialog box appears that states that an
application error occurred, and that Visual FoxPro caused an exception
violation at a specific memory address.
RESOLUTION
Call the DODefault() method of the Editbox before the This.Value command in
the Refresh event. In the code example below, change the Refresh event code
to read as follows:
PROCEDURE Refresh
IF THISFORM.chkRef.Value
DODEFAULT()
WAIT WINDOW THIS.Value NOWAIT
ENDIF
RETURN
ENDPROC
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This bug was corrected in Microsoft Visual FoxPro for Windows 7.0 and later.
Modification Type: | Major | Last Reviewed: | 6/6/2003 |
---|
Keywords: | kbbug kbpending KB187274 |
---|
|