Determine if value exists in string with elegance

Posted on 2004-11-13
Medium Priority
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.

Question by:webdork
  • 2
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12574957
LVL 97

Accepted Solution

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.


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

Author Comment

ID: 12575088
No Perhaps about it. Lovely. Thanks!

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