• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
can I make a list of records?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can I make a list of records?


  • Subject: can I make a list of records?
  • From: James Sentman <email@hidden>
  • Date: Mon, 28 Jan 2002 11:28:14 -0500

Hi Folks,

I'd like to be able to represent some data structures as lists of records so that I can do things like

set myFirstRecord to {name:"jack", age:"32"}
set mySecondRecord to {name:"peter", age:"41"}

and then put them into a single list, but make it a list of records, not just a list of strings which is what I always seem to get.

set MyList to MyList & MyFirstRecord & MySecondRecord just gives me a regular list of strings with 4 items in it. I need a list of 2 records so that I could do something like:

set MyRecord to item 2 of MyList
return name of MyRecord

would then return "peter"

The point is to be able to build this structure in a loop and then pass it off to a program in a single step rather than sending lots of events over and over which would slow things down too much.

Any help or pointers to further documentation greatly appreciated!

Thanks,
James

--
_________________________________________________________________________
James Sentman <email@hidden> http://www.sentman.com
Enterprise server monitoring with: http://whistleblower.sentman.com/


  • Prev by Date: Re: Sifting a list sans loop
  • Next by Date: Re: solutions to scripting addition terminology confilicts [goi
  • Previous by thread: Re: Main Event (?)
  • Next by thread: Re: can I make a list of records?
  • Index(es):
    • Date
    • Thread