D
David
Hi,
I'm trying to pass a querystring with certain common words removed (and,
the, if, of etc). The code below replaces the keywords with "" or whatever I
choose, but what I'd like to do is remove the words completely from the
querystring. How do I remove rather than replace?
Thanks
*********
tempstr=searchstring
removewords = array ("and","the","if","of","a")
temp=trim(tempstr)
for x=0 to ubound(removewords)
temp=replace(temp,removewords(x),"")
next
newstring=Trim(temp)
I'm trying to pass a querystring with certain common words removed (and,
the, if, of etc). The code below replaces the keywords with "" or whatever I
choose, but what I'd like to do is remove the words completely from the
querystring. How do I remove rather than replace?
Thanks
*********
tempstr=searchstring
removewords = array ("and","the","if","of","a")
temp=trim(tempstr)
for x=0 to ubound(removewords)
temp=replace(temp,removewords(x),"")
next
newstring=Trim(temp)