[thelist] completing the alphabet

.jeff jeff at members.evolt.org
Sun Aug 12 00:31:55 CDT 2001


> From: Marc Seyon
> Looking for some suggestions on how to accomplish this
> seemingly simple task:
> I've got a list of letters, eg E L N R S T in an array
> (sorted alphabetically) What I want to do is fill in
> the rest of letters in the alphabet, but in lower case.
> So this list will become "a b c d E f g h i j k L m N
> o p q R S T u v w x y z"
> Note, each letter will be a separate item in the array.
> I'm using VBScript/ASP.

i know you're not using coldfusion, but maybe this will inspire you or
someone else.  this is how i'd do it in coldfusion:

<cfparam name="alphabet"

<cfparam name="letters" default="E,L,N,R,S,T">

<cfset alphabet = ReplaceList(alphabet, LCase(letters), letters)>

now you've got a comma-delimited list of letters with the lowercase versions
of the ones matching replaced with uppercase ones.

good luck,


jeff at members.evolt.org

More information about the thelist mailing list