Selected Index Problem

First, this requires a bit of an explaination:
I have two list boxes. The one on the left (lstOptions) contains a list of options. The second contains your choices (lstChoices).
Here are some example options in lstOptions.
AA,BB,CC,DD,EE,FF,GG,HH
I have an AND button and an OR buttong and an EXCLUSIVE button. Using them, this is basically what I want to see in lstChoices.
AA,BB,CC
DD,EE
* DD,EE
* means exclusive
Well, I started seeing some really wierd behavior the selected index kept going to 1. I couldn't OR anything to the third list. It could on the first. I tried adding more lists to lstChoices. And had some success in ORing to them but was still really confused as to what's going on. I couldn't see a pattern. Then suddenly something occured to me and I discovered the pattern and was austounded as to what was happening. List box treats any list items as the SAME item if the text in them is the same. Even if the text in one is changed before adding the next one. And these items don't even have to be contiguous.
Example:
AA
BB,CC
DD
BB
I used AND to add BB. Then OR to append CC. AND to add DD. Then, AND to add BB. I can't OR anything to it because clicking it will move the selection straight back to BB,CC.

Is there anyway to change this behavior to a more normal behavior? If not, I suppose I'll have to number the list items to keep them unique.

Thanks,
Scott
[1512 byte] By [Scott.Macmaster] at [2007-11-20 7:14:48]
# 1 Re: Selected Index Problem
honestly, I did not understand much about your problem.
Can you post or attach the code that causes the problem?
hspc at 2007-11-9 11:53:03 >