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:
00169659
Views:
24
I created a MoverList control similar in style to yours. I was running into the same problem with cursors and tables as you are. I changed it to pass in arrays and use AddItem() RemoveItem() to add and remove values from each list box. No problems now. HTH

>Hi,
>
>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
>What happened??? I don't know!
>
>PLEASE HELP ME!!!!! (I need to finish my system to TODAY)
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Previous
Reply
Map
View

Click here to load this message in the networking platform