Accessing a Record by variable
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