Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web
Expertise: Beginner
Sep 2, 1999



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Use VBScript Split Function with Multi-Select Controls

When you have a multi-select control, your request variable for the control will be comma delimited. An easy way to retrieve each option value is to use the VBScript Split function. Split basically accepts a string and a delimiter. You can also pass it a count value to tell it how many strings to split, as well as the compare type if, for example, you want the delimiter to be case sensitive. An array is returned by the split function, and we can use the handy Lbound and Ubound functions to write a loop. This way, the array can be arbitrarily large or small. This technique also works if you have a check box group or a large text field of, let
William Wen
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date