Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I ...List Box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00391520
Message ID:
00391612
Vues:
10
>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."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform