selection in a simple listbox is controlled by the "listindex" property. it's zero-based, so the first item in the list is listindex = 0. if no items in the list are selected, listindex = -1.
hope it helps!
__________________
Depression is just anger without enthusiasm. It’s having an empty beer bottle but no one to throw it at.
|