Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-selecting Prob w/ listbox with rowsource = 6 (Fiel
Message
From
07/07/2005 12:56:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/07/2005 12:48:43
Diran Nazarian
Alion Science and Technology
Annapolis, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01030030
Message ID:
01030034
Views:
17
>All,
>
>I have been having the following problem with a listbox on my form. Whenever I multi-select items from the list, and then press Tab to lose focus from the listbox, and shift-tab to regain focus to the listbox; the list selects items that I never clicked, and does not retain the items that I selected.
>
>To repeat this scenario, create a new form with a listbox and a command button. Set the row source to 6 fields and tie the data to a column in a table. Set the multi-select property of the listbox to .T. Now run the form, select multiple items from the list, tag focus away from the list and then bring focus back. You will notice unexpected results.
>
>I looked in the MSDN knowledge base and found the article kbprb KB136588. The solution they posed was adding each item programmatically with Additem methods, but this isn't a viable solution because my form generates results from a user's query that could generate over 200 results.
>
>Would love some input on this if anyone knows any?
>
>Thank you,
>-Diran

It's a known issue. Save your selected items during lostfocus and restore on gotfocus.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform