General information
Category:
Coding, syntax & commands
Hello Nadya.
I re-read these descriptions again and now I'm confused. What's the difference between nIndex and nItemID and between Selected and SelectedID. Seems like there is no property, which would return selected ID...
The list box has two internal collections that allow you to interate through the contents of its internal list. The first is its List collection and the second is its ListItem collection. Each of these collections has its own specific properties and methods.
The List collection is accessed using the collection's index. This corresponds to its position in the list and the value changes as items are added and deleted from the list or the list is sorted. The ListItem collection is accessed using its ItemID. This is a value that is assigned to the the item when it is added to the list and is analogous to a primary key. It does not change.
Use selected to reference the selected items in the list box's List collection.
Use SelectedID to refer to selected items in the list box's ListItem collection.
HTH
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only