using "repeat for each" when you don't want to start with the
first line
LiangTyan Fui
mlist at afteroffice.com
Mon Apr 29 10:45:01 EDT 2002
put the SelectedText of fld "Scene List" into CurScene
put lineoffset(CurScene&return,SceneFile) into q
put SceneFile into SceneFile2 # If you need to preserve SceneFile, or else
delete from it directly.
delete line 1 to q of SceneFile2 # MC handle small chunk faster
repeat for each line theline in SceneFile2
do stuff
end repeat
--
On 4/29/02 10:01 PM, shop wrote:
> 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
>
More information about the metacard
mailing list