FIX: ComboBox and ListBox Data Moves when Using Slide Control (162546)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q162546 SYMPTOMS
Using the Slide control on the scroll bar of a dropped-down combo box or a
list box causes the data in the combo box or list box to jump around
erratically.
CAUSE
Setting the order on the table that is used as the RowSource property for
the combo box or list box causes this behavior.
RESOLUTION
One workaround is to use an ARRAY as the RowSourceType property of the
combo box or list box.
Another workaround is to use a SQL - STATEMENT as the RowSourceType.
However, if the ORDER clause is used, it may be necessary to force Visual
FoxPro to create an actual temporary cursor on disk of the query results.
This can be done by adding a non-existing column to the resulting cursor as
in the following example:
SELECT <desired_field>,.F. FROM <table_name> ;
ORDER BY <desired_field> INTO CURSOR temp
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This has been corrected in Visual
FoxPro 6.0.
REFERENCES
For more information about forcing SQL-SELECT to create a temporary file,
please see the following article(s) in the Microsoft Knowledge Base:
109584 How To Force SELECT-SQL to Create Temp File for Cursor
Modification Type: | Major | Last Reviewed: | 10/16/2002 |
---|
Keywords: | kbBug KB162546 |
---|
|