Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I ...List Box
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00391520
Message ID:
00391612
Views:
11
>I have a list box with two columns
>The rowsource type is : 1 - Value
>
>The elements of the list are built from a table.
>With a do while and a sequence number attached.
>When I remove an item from the list using RemoveItem(). It doens't remove it from the rowsource.
>
>Should I use another method to remove from the rowsource or how do i rebuild the rowsource leaving the the user defined order of list items in tack?
>
>TIA
>Shawn

FOR nCnt = 1 TO THIS.Parent.lstSelected.ListCount
IF THIS.Parent.lstSelected.Selected(nCnt)
THIS.Parent.lstSource.AddItem(THIS.Parent.lstSelected.List(nCnt))
THIS.Parent.lstSelected.RemoveItem(nCnt)
ENDIF
ENDFOR

JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform