Re: Accessing a Record by variable--the solutions
Re: Accessing a Record by variable--the solutions
- Subject: Re: Accessing a Record by variable--the solutions
- From: email@hidden (Douglas Wagner)
- Date: Fri, 16 Feb 2001 11:02:45 -0400
Hello Nigel:
A bag of weasels has nothing on this. Very cunning.
Thanks and have a good day:
Douglas Wagner
property kStrMonths : "umanebarprayunulugepctovec"
on monthIndex(mon) -- Note, text 2 thru 3 of mon must be lower case
return (offset of (text 2 thru 3 of mon) in kStrMonths) div 2
end monthIndex
set theMonth to "Feb" -- or "feb" or "February", etc....
monthIndex(theMonth)