Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HELP ME!! My listbox is crazy!!!!
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00169632
Message ID:
00169715
Views:
20
Esteban,

Anytime you change the content of the RowSource you need to call the Listbox.Requery() method and the .Refresh().

>I have a custom MoverList Control. This is a class bassed on Container and have two list boxes (Source and Target) and four command buttons (Add, Add All, Remove and Remove All)
>
>this is my basic properties:
>
>lstSource.Rowsource = "Select name from table Where table.enabled into cursor curS"
>lstTarget.Rowsource = "Select name from table Where !table.enabled into cursor curT"
>
>When Add button is pressed, the EvalAdd event is called
>In this method, I do Replace enabled With .F.
>
>THE PROBLEM:
>The Source list have 200 items
>I only click on any item and move the bar with Up and down arrow
>several times and the items are mixed, the order crash
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform