> Im intending to create a list. > Jayp = [:] > In this list will be the properties, member, loc, size. > > Lets say that all works fine and I add a few records... > > How do I call for eg. The 3 record called loc.... > > Ie.. [member: 2, loc: 12,4, size: 100,100, member: 5, loc: 17,3, size: > 50,100, member: 9, loc: 9,4, size: 190,100]
Looking at this content, I think you'd likely be better served by a nested list structure. Such as: [#identifier:[#member: 2, #loc:[12,4], #size:[100,100]], #identifier:[#member: 5, #loc:[17,3], #size:[50,100], ...] That way, your info retains its relationships - of course, I'm assuming a correlation between member, loc, and size that might not be correct. Note that I changed your loc and size info to lists. With this structure, you can parse it however you like - get all of the info for a certain identifier, or loop through and get all locs: repeat with i = 1 to list.count dosomethingwith(list[i][#loc]) end repeat or whatever. What's the need behind the question? -Kurt [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 [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
