?
Solved

Determine if value exists in string with elegance

Posted on 2004-11-13
3
Medium Priority
?
264 Views
Last Modified: 2010-04-17
I'm offering the viewer an .asp page form with a list of checkboxs to allow multi-select. On the subsequent page I want to determine which values they have selected. Easy to do with one value selected, trickier with multi-values selected.

I can daisy chain together a series of blocks of code determining regular expression pattern but it seems clunky.

I'm looking for the vbscript equivalent of the SQL IN statement.

0
Comment
Question by:webdork
  • 2
3 Comments
 
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12574957
0
 
LVL 97

Accepted Solution

by:
Lee W, MVP earned 800 total points
ID: 12574983
Or I can see a reason you might want to use SPLIT with a FOR EACH loop.

http://www.w3schools.com/vbscript/func_split.asp
http://www.devx.com/asp/Article/16806

FOR EACH loop see:
http://www.html.dk/dokumentation/objects/asp/iiwacoll.htm and look for "Iterating through a collection"
0
 

Author Comment

by:webdork
ID: 12575088
No Perhaps about it. Lovely. Thanks!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Six Sigma Control Plans
Introduction to Processes

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question