Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-selecting Prob w/ listbox with rowsource = 6 (Fields)
Message
De
07/07/2005 12:48:43
Diran Nazarian
Alion Science and Technology
Annapolis, Maryland, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Multi-selecting Prob w/ listbox with rowsource = 6 (Fields)
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01030030
Message ID:
01030030
Vues:
78
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform