Since I continue to see lots of troubles with AddItem and AddListItem, and it's no wonder considering the need to use a lawyer to read their documentation entries successfully, here's a simple little hint to save lots of trouble:
Use the List and possibly the ListItem> property instead! As long as you don't need to play with the nItemID thingy, it's as simple as that. No surprises (other than the fact that a "property" can do these things in the first place).
For your information, here is a paste of the preamble from the Hacker's Guide for these properties:
----- start of excerpt -----------
These two properties are arrays that give you access to the data in a list or combo box. These are very, very cool properties. They not only let you look up the information, but also let you change it when appropriate.
----- end of excerpt ----------
Hope this helps someone,
Jim N
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement