• 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
Accessing a Record by variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing a Record by variable


  • Subject: Accessing a Record by variable
  • From: email@hidden (Douglas Wagner)
  • Date: Mon, 12 Feb 2001 21:02:10 -0400

Hello:

I'd like to be able to access an AS record using a variable.

set aMth to "Feb"
set theMths to {Jan:"1", Feb:"2", Mar:"3", Apr:"4", May:"5", Jun:"6", Jul:"7", Aug:"8", Sep:"9", Oct:"10", Nov:"11", Dec:"12"}
set mthNum to aMth in theMths

what I'd like to get is --> 2

I'm astonished this doesn't work. Is there an elegant alternative?

Thanks and have a good day: Douglas Wagner


  • Follow-Ups:
    • Re: Accessing a Record by variable
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: backup script
  • Next by Date: Script Editor crashing constantly
  • Previous by thread: Re: backup script
  • Next by thread: Re: Accessing a Record by variable
  • Index(es):
    • Date
    • Thread