using "repeat for each" when you don't want to start with the first line

shop shop at paynesparkman.com
Mon Apr 29 10:05:01 EDT 2002


I have a number of repeat loops in my software which I would love to speed up using the "repeat for each" technique but I don't want to start with the first line.  Instead, I want to start based on which line the user selects in a fld.  A typical example of what I'm currently doing follows:

  put the SelectedText of fld "Scene List" into CurScene
  put lineoffset(CurScene&return,SceneFile) into q
  repeat with q2 = q+1 to the number of lines in SceneFile
        do stuff
  end repeat

Any suggestions?

Rich Mooney
Payne Sparkman Mfg.
shop at paynesparkman.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20020429/20ad60e5/attachment.htm


More information about the metacard mailing list