Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get drop down to return an integer

Status
Not open for further replies.

TimPro

Programmer
Feb 26, 2002
8
IE
how do i get drop down to return an integer
all i get is a string

please help
 
Hi

Don't quote me on it, but all you will ever get back from a form (which is where I am assuming your dropdown in in) is a variable of type "variant" in vbscript. What problems is this causing? You should still be able to test whether your value is less than or greater than something etc.

Give us some examples of what the problems are and we'll get back to you Derren
[The only person in the world to like Word]
 
I have dynamically generated a number of drop down menus. i want the user to select values in a preference based system.
ideally they would select 1 from one menu 2 from another etc. i am trying to ensure that they don't select 2,5, 7. instead of 1,2,3 etc.
what i want to do is to check if a value of 1 is returned. if it is fine, otherwise i wand to decrement the values in all the drop down menus until a value is 1.the values should be in order, without skipping any numbers.

any ideas
 
i have created a number of menus depending on what values are stored in teh db.

<select name=&quot;mnuPreference<%=ival%>&quot;><option value=&quot;&quot;></option>
<%For i = 1 to iCount
%><option value=<%=i%>><%=i%></option>
<%Next%>
</select>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top