aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes What is the listIndex? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "What is the listIndex?" Watch "What is the listIndex?" New topic
Author

What is the listIndex?

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1254
If I have a particular string that I know is one of the values of a select list how can I use this string to find the list item index so I can use it in a remove command?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
You can try this:



or loop through the options, look at the text or value and get the index that way.

Eric
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: What is the listIndex?
 
Similar Threads
amount currency datatype
Generic List array
String Array without knowing dimensions
difference between Java, VisualBasic & C
maxlength for customer id column