at 25.02.2002 11:41 Uhr, mike ang wrote:

> int i
> for (i=0, i<100, i++)
>  { int j
>        for (j=0, j<5, j++)
>           { ....  then do something  ....
>        }
>  }


repeat with i = 0 to 99
  repeat with j = 0 to 4
    ... do something
  end repeat
end repeat

or

repeat while i < 100
  j = 0
  repeat while j < 5

     .... do something
     j = j+1
  end repeat

  i = i+1
end repeat


while the former is much faster



-- Andy Fuchs
-- silent movie media
-- mailto:[EMAIL PROTECTED]
-- http://www.silent-movie-media.com

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to