Re: find/match not working

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

I re-thought this.
integer a
 sequence newlist,found
  newlist={}
  found={}
 for loop=1 to length(urllist) do
   a=find(urllist[loop],found))
   if a=0 then
      found=append(found,urllist[loop])  
    -- newlist=append(newlist,urllist[loop])--you don't really need newlist
                                            --unless you are going to alter
   end if                                   --urllist[loop] before you add 
 end for                                    --it to your sequence.
 urllist=found
--now your list is free of duplicates--

for loop=1 to length(urllist) do
   if find(junk,urllist[loop]) then
     exit
   end if
end for
  urllist=urlist & {junk}


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