Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another small TIP
Message
 
À
06/10/1999 07:57:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00272892
Message ID:
00273093
Vues:
20
>Hi Ed,
>
>I'm replying mainly to fix the crummy italics I did in the original, but I did also want to say that there is a problem in my humble opinion with the RemoveItem / RemoveListItem methods *if* you happen to be using the ItemID. Neither will remove the ItemIDs, so if you happen to add an item with an ItemID that existed before but had been removed, the (new) item will only go to the spot occupied by the ItemID in its FORMER presence.
>This is not documented except in a MS KB article.
>
>Cheers,
>
>Jim N
Jim,

Thinks of ItemIDs like surrogate PKs, don't ever reuse them, just add the new item with a new itemid using the NewItemID property and adding 1 to it.

ListIndex has an effect on the visual appearance of the list but ItemID has no effect on the visuals. ItemID is strictly an internal ID assigned to each item in the list that stays with that item through its life (a sort of PK).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform