Re: find/match not working

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kat wrote:
> 
> I have a list of urls, contained in urllist like:
> urllist[1], urllist[2]..urllist[x]
> 
> and i tried eliminating duplicates before they are added, by using find, which
>
> didn't work. Now i am using 
> 

I have a list of urls, contained in urllist like:
urllist[1], urllist[2]..urllist[x]

and i tried eliminating duplicates before they are added, by using find, which 
didn't work. Now i am using 
> 
> Kat
> 
> 
Compile your complete list duplicates and all.
Don't worry if they are added.
Then eliminate all duplicates with:
function clean_dups(list)
  integer a
  sequence found
 for x=1 to length(list) do
  a=find(list[x],found)
  if a=0 then
     found=append(found,list[x])
  end if
 end for
 return found
end function

It might take longer but will work.
don cole 
SF

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu