reverseLines function
Klaus Major
klaus.major at metascape.org
Thu Jul 25 04:59:00 EDT 2002
Bonjour Yves,
> Hi,
>
> I'd like someone help me writing a fsat function :
I will ;-)
> I have a liste of lines (big list !)
> The number of lines of the list is variable
> I'd like that the list appears in the reverse orde so that
>
> line 1 -> last line
> ...
> ...
> last line -> line 1
>
> something like :
>
> function reverseLines tList
> return tresult
> end reverseLines
> -- Greetings.
>
> Yves COPPE
try this:
function reverseLines tList
repeat for each line l in tList
put l & CR before reverseLines
end repeat
delete char -1 of reverseLines
return reverseLines
end reverseLines
Have fun...
Regards
Klaus Major
klaus.major at metascape.org
More information about the use-livecode
mailing list