Re: find/match not working

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

Kat wrote:
> 
> On 19 Aug 2004, at 15:04, Derek Parnell wrote:
> 
> > 
> > posted by: Derek Parnell <ddparnell at bigpond.com>
> > 
> > Kat wrote:
> > 
> > > According to the files i printed out, the items were the same. But find()
> > > didn't find them. 
> > > 
> > 
> > Is it possible for you to show us your source code? Not the 'sample'
> > code shown before, but the actual code you are really using.
> 
> I did, i copy/pasted the code to this listserv days ago.


The code you posted was this...


found = 0
for loop = 1 to length(urllist) do
  if match(junk,urllist[loop]) then
     found = 1
     exit
   end if
 end for
 if not found then
   urllist = urllist & {junk}
  end if
--------------

Try this instead...

-------------
if not find(junk, urllist) then 
   urllist = urlist & {junk} 
end if
------------


-- 
Derek Parnell
Melbourne, Australia

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

Search



Quick Links

User menu

Not signed in.

Misc Menu