I have a drop down box populate a list box. (change: ListBox1.addItem(xfa.event.newText)) But I can add more then one of the same selection so how do I remove them from the ListBox. Upon click? somehow? I don't konw the lingo.
Solved! Go to Solution.
Views
Replies
Total Likes
There is a selectedIndex property that will give you back the index of the 1st item that is selected.
Paul
Views
Replies
Total Likes
also If i allow custom text in the drop down box. It adds each letter that i type. How do i only allow upon pressing enter or something
Views
Replies
Total Likes
There is a deleteItem method for this.
Paul
Views
Replies
Total Likes
You probably have your code on the change event .....move it to the exit event.
Paul
Views
Replies
Total Likes
I see the delteItem but I get an error wherever i put it. Am i using the wrong code: ListBox1.deleteItem
Views
Replies
Total Likes
It requires an index of the item that you want to delete
Paul
Views
Replies
Total Likes
How does the index be what is selected or clicked on?
Views
Replies
Total Likes
There is a selectedIndex property that will give you back the index of the 1st item that is selected.
Paul
Views
Replies
Total Likes
Thanks this seems to work. I put a dummy "remove" button next to it so people think to highlight and then click off.
Views
Replies
Total Likes
Views
Likes
Replies