BUG: ListBox Does Not Refresh Properly with SET FILTER Command (135754)
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 Q135754 SYMPTOMS
A listbox displaying fields from a table is not refreshed correctly when
the following commands are issued:
SET FILTER TO <myfilter>
Then one of the following two commands:
ThisForm.Refresh
ThisForm.List<#>.Refresh
WORKAROUND
Immediately after issuing the SET FILTER command, issue a SETFOCUS command
to the list box and back again to the object on the form where control
should be. As in the "Steps to Reproduce Behavior" below, in the Click
event of the command buttons, the following lines of code would be used:
ThisForm.List1.SetFocus && sets the focus to the list box
ThisForm.Command<#>.SetFocus && sets the focus back to the button
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.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbBug KB135754 |
---|
|