Alex Tweedly wrote:
MisterX wrote:
or (probably better)

 repeat with x = 1 to linecount
   repeat with y = 1 to xp
     put line x of param(y) comma after c
   end repeat
   delete last char of c
   put cr after c
 end repeat

It would be worth experimenting with turning the loop inside out

  repeat with x = 1 to xp
    put param(x) into theLine
    repeat with y = 1 to linecount
      put line y of theLine & comma after line y of c
    end repeat
  end repeat
  repeat with y = 1 to linecount
     delete the last char of line y of c
  end repeat

but I don't think that will be faster.

Darn, Alex, I got so used to being amazed with your nifty use of arrays I was betting on you coming up with a one-liner for this. :)


--
 Richard Gaskin
 Fourth World Media Corporation
 ___________________________________________________________
 [EMAIL PROTECTED]       http://www.FourthWorld.com
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to