Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Martin Steer
Hello There, Just a quick question to everyone here. I've been trying to remove filenames (lines) from the string that the 'files' function returns. The basic algorithm I've been using is below, but I think I've found a problem in the 'repeat for each chunkType' control structure in Rev. Here

Re: Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Yves COPPE
Le mardi, 19 aoû 2003, à 10:00 Europe/Brussels, Martin Steer a écrit : Hello There, Just a quick question to everyone here. I've been trying to remove filenames (lines) from the string that the 'files' function returns. The basic algorithm I've been using is below, but I think I've found a pro

Re: Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Jan Schenkel
--- Martin Steer <[EMAIL PROTECTED]> wrote: > Hello There, > > Just a quick question to everyone here. > > I've been trying to remove filenames (lines) from > the string that the > 'files' function returns. The basic algorithm I've > been using is below, > but I think I've found a problem in th

Re: Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Ludovic Thébault
On Tue, 19 Aug 2003 18:00:07 +1000, Martin Steer wrote: Try, (if you are sure that you don't need any empty line) : on mouseUp > > put ".ds_store" & return & "Help File 1.xml" & return & "Help File > 3.xml" into fileList > > put 1 into i > > breakpoint > repeat for each line currLine

Re: Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Robert Brenstein
Hello There, Just a quick question to everyone here. I've been trying to remove filenames (lines) from the string that the 'files' function returns. The basic algorithm I've been using is below, but I think I've found a problem in the 'repeat for each chunkType' control structure in Rev. Here

Re: Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Björnke von Gierke
On Dienstag, Aug 19, 2003, at 10:21 Europe/Zurich, Jan Schenkel wrote: ... on mouseUp put ".ds_store" & return & "Help File 1.xml" & return & "Help File 3.xml" into fileList put 1 into i breakpoint repeat for each line currLine in fileList delete line i of fileList add 1 to

Re: Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Jan Schenkel
--- Björnke_von_Gierke <[EMAIL PROTECTED]> wrote: > > [snip] > > Eh? I always thought that the repeat for each loop > copies the content > it loops over and then uses that too loop. This is > so that looping in > fields is not slower then looping in a variable. In > fact looping a > variable I

Re: Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Dar Scott
On Tuesday, August 19, 2003, at 02:00 AM, Martin Steer wrote: repeat for each line currLine in fileList repeat for each line currLine in (fileList & empty) I'm just guessing, assuming that will create a temporary copy for your. An alternate approach would be to build a new list and not try to

Re: Deleting lines within a 'repeat for each' loop

2003-08-19 Thread Rob Cozens
An alternate approach would be to build a new list and not try to delete lines from the original, depending on what you have in mind. Martin, Dar, et al: I use this approach in maintaining SDB indexes: For example, SDB Server maintains a locked record index with a format of recordId & tab & cli