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: "Arthur J Knapp" <email@hidden>
- Date: Fri, 16 Feb 2001 11:52:42 -0500
>
Subject: Re: Accessing a Record by variable--the solutions
>
Date: Fri, 16 Feb 2001 09:46:07 +0000
>
From: Nigel Garvey <email@hidden>
>
"Arthur J Knapp" wrote on Thu, 15 Feb 2001 12:52:31 -0500:
>
> Now, who can modify this basic technique just enough to work with
>
>the slightly less case-sensitive string:
>
>"...JanjanFebfebMarmarApraprMaymayJunjunJuljulAugaugSepsepOctoctNovnovDecdec
>
> or something like it?
>
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)
How the...
I can't believe...
British cheek...
You may have beaten me this time, young Jedi, but your
days are numbered, HA HA HA HA!!!
>
NG
Nigel the Great ;-)
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
"...it's not my birthday,
it's not today..."
}