Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filling a multi-column ListBox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00040242
Message ID:
00040528
Vues:
40
>Bruce,
>
>The problem I had with AddListItem was as follows:
>
>I had a multi-column list box from which the user could add or remove items. Any items removed mid-list caused "squishing" of the list so that all remaining entries were contiguous. Any adding was always done to the end of the list.
>Now with AddListItem you have to supply a nItemID. Unfortunately, RemoveItem does *NOT* clear the array of nItemIDs (this turns out to be "by design"). The consequence is that whaen I try to add an item to the END of the list it would not go there. Rather, it always went into the spot previously occupied by the now deleted item with the same nItemID!! This was a frustrating "bug" (by design"!!!) to the max! Days of pulling my hair out, for nothing!
>
>Needless to say, I developed a strong negative relationship with AddItem and AddListItem. List was so nice and simple by comparison, with absolutely no surprises (so far!). The only problem with List was that it was in no way remotely obvious that it could even be used for the purpose.
>
I see what you mean -- I've only used AddListItem with Sorted = .T., so haven't bumped into that...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform