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

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. |
----------------------------------------------------------------------


  • Prev by Date: AppleWorks Spreadsheet manipulation
  • Next by Date: RE: WHEN WILL THE LIST SERVER BE FIXED?
  • Previous by thread: Re: Accessing a Record by variable--the solutions
  • Next by thread: Re: Accessing a Record by variable--the solutions
  • Index(es):
    • Date
    • Thread