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: Michelle Steiner <email@hidden>
- Date: Thu, 15 Feb 2001 15:14:39 -0800
On 2/15/01 9:52 AM, Arthur J Knapp <email@hidden> wrote:
>
Now, who can modify this basic technique just enough to work with
>
the slightly less case-sensitive string:
>
>
property kStrMonths :
>
"...JanjanFebfebMarmarApraprMaymayJunjunJuljulAugaugSepsepOctoctNovnovDecdec
property kStrMonths :
"...JanjanFebfebMarmarApraprMaymayJunjunJuljulAugaugSepsepOctoctNovnovDecde
c"
on monthIndex(mon)
set the calculation to (offset of mon in kStrMonths) div 3
if (ASCII number of character 1 of mon) is greater than 90 then
return the calculation div 2
else
return the calculation div 2 + 1
end if
end monthIndex
set theMonth to "jul"
monthIndex(theMonth)
-->7
--michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------