Hi,

there was quite an extensive discussion of this on Direct-L a couple of weeks ago - go to

http://listserv.uark.edu/scripts/wa.exe?S1=direct-l

and search for subject "How does one concatenate 2 lists together? "

HTH

cheers,

Martin Pallett


At 13:48 11/04/2005 +0100, you wrote:
Hi,

Thanks, that's similar to the method I am using at the moment. I was
hoping for some undocumented way of doing a simple join to get rid of
the repeat loop and hence improve the efficiency of the code.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ozkan
ALTUNER
Sent: 11 April 2005 13:15
To: Lingo programming discussion list
Subject: Re: <lingo-l> joining lists in lingo

Hello Tim,

You can do it by appending list two to list one, by using a loop and
getAt(), getPropAt(), addProp() and addAt() methods.

repeat with i = 1 to list2.count()
  addProp(list1, getAt(list2, i)
end repeat

i'm not exatcly sure of the syntax, however, it clearly should give you
an idea.

Ciao,
Ozkan

Spike Rowe House Emson Close Saffron Walden UK CB10 1HL +44 (0) 1799 529 100

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to