ASP variable = Empty (from [thelist] completing the alphabet)

Marc Seyon seyon at delime.com
Wed Aug 22 16:19:53 CDT 2001


Matt, first off thanks. This solution worked perfectly.
Just one question about your "being anal" as you call it.

I know about setting objects to nothing. Now I'm curious how important it 
is to set the variable empty as you did?

Thanks.
-marc


>myABCs = "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"
>
>ucaseLetters = "E,L,N,R,S,T"
>ary_ucase = Split(ucaseLetters, ",")
>
>for i = 0 to ubound(ary_ucase)
>         sLetter=ary_ucase(i)
>         myABCs = replace(myABCs, lcase(sLetter), sLetter, 1, 1)
>         sLetter = Empty  ' this is me being anal
>next





More information about the thelist mailing list