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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox with Multiple Select Option enabled

Status
Not open for further replies.

TexDec

Programmer
Jul 22, 2002
5
US
I have a list box from which the user can select 1 or many options.
In my action asp I want to be able to loop through these options, calling a procedure for each one. Is this possible?

I'm hoping for something that looks like this.


For Each Itm in Request.Forms("listboxname").activevalues?
Variable = Request.Forms("listboxname"). Itm.value
Work with variable
Next Itm
 
hi TexDec,

try this:

For idx = 1 to Request.Forms("listboxname").count
Variable = Request.Forms("listboxname")(idx)
'Work with variable
Next

======================================

if (!succeed) try();
-jeff
 
Awesome!
Works perfectly. I can't tell you how much hair I've pulled out this morning.


Cheers
 
yep - thank God my hair grows back ;-) ======================================

if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top