• 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
Anyone know how to set an arbitrary subset of record elements? (another reason that associative arrays would be nice)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Anyone know how to set an arbitrary subset of record elements? (another reason that associative arrays would be nice)


  • Subject: Anyone know how to set an arbitrary subset of record elements? (another reason that associative arrays would be nice)
  • From: Timothy Bates <email@hidden>
  • Date: Sun, 09 Sep 2001 00:01:30 +1000

hi
I have a record
pSubjectFileParameters : {prefix:"", suffix:"", maxLength:""}

and I want to be able to take a record which contain 1 or more of these
elements and do something like

repeat with anItem in {prefix:"test1", maxLength:"31"}
set <label of anItem> of pSubjectFileParameters to <value of anItem>
end

pSubjectFileParameters
-->

Anyone see how this can be accomplished? It would be easy if this was an
associative array as the pseudo-code would just execute as requested

Of course I can't just go:

set pSubjectFileParameters to {prefix:"test1", maxLength:"31"}

tim


  • Follow-Ups:
    • Re: Anyone know how to set an arbitrary subset of record elements? (another reason that associative arrays would be nice)
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Mixed Results: Re: can i 'store script' as stay open applet?
  • Next by Date: Issue with files passed to subroutines
  • Previous by thread: RE: Time Delay
  • Next by thread: Re: Anyone know how to set an arbitrary subset of record elements? (another reason that associative arrays would be nice)
  • Index(es):
    • Date
    • Thread