Split, combine ok but where's extract?
Richard Gaskin
ambassador at fourthworld.com
Sat Feb 12 07:36:19 EST 2005
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
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list