Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List boxes
Message
From
29/07/2003 13:17:03
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
List boxes
Miscellaneous
Thread ID:
00814604
Message ID:
00814604
Views:
33
All,

I am creating a mover control. When the user clicks an add or remove button my code SHOULD take the selected item or items, moves them to the proper location and removes them from the proper location. However, it sometimes works and sometimes transfers blanks between the two listboxes. My code is below, what's wrong?

LOCAL I
I = 1
DO While I <= this.Parent.lstLeft.ListCount
IF this.Parent.lstleft.Selected(I)
this.Parent.lstright.AddItem(this.Parent.lstleft.ListIndex)
this.Parent.lstleft.RemoveItem(this.Parent.lstleft.ListIndex)
ENDIF
I = I + 1
ENDDO
Thanks

Jim
Next
Reply
Map
View

Click here to load this message in the networking platform