i hav created a combobox and add elements to it from database . combobox contain elements lyk 1-2year,12 months,5-9years, means numeric as well as text.
but now i want to extract only numeric data from it as 1-2 year or12 months.
so plz suggest any code tht can retreive only numeric data either from combobox or database column.

I don't understand your request. Perhaps an example would help?
If the text is "1-2year" what EXACTLY would you get when you "extract only numeric data"?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.