I do the exact same thing Peter. I learned this when I was developing for a 
dBase accounting application. All their control structures and terminations 
were commented quite extensively, and I was able to learn dBase and their code 
specifically because they did.

Bob S


On Apr 30, 2016, at 06:31 , Peter M. Brigham 
<pmb...@gmail.com<mailto:pmb...@gmail.com>> wrote:

I generally do the same thing with nested repeats, but my comments are 
different:

On Apr 30, 2016, at 2:13 AM, Kay C Lan wrote:

put 0 into tCounter
repeat with a = 1 to 10
repeat with b = 1 to 10
  repeat with c = 1 to 10
    repeat with d = 1 to 10
      repeat with e = 1 to 10
        add 1 to tCounter
        -- do stuff with variables here
      end repeat  -- e = 1 to 10
      -- more processing
    end repeat  -- d = 1 to 10
    -- more processing
  end repeat  -- c = 1 to 10
  -- more processing
end repeat  -- b = 1 to 10
-- more processing
end repeat  -- a = 1 to 10

-- Peter

Peter M. Brigham
pmb...@gmail.com<mailto:pmb...@gmail.com>
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to