Re: Shortening variable list passed onto subroutines
Re: Shortening variable list passed onto subroutines
- Subject: Re: Shortening variable list passed onto subroutines
- From: Michelle Steiner <email@hidden>
- Date: Tue, 17 Jan 2006 08:20:16 -0700
On Jan 17, 2006, at 2:16 AM, Jay Louvion wrote:
I’ve been dabbling seriously for the first time (and think I’ve got
it at
last) in subroutines, but I was wondering if there is away of
shortening a
variable list passed onto it.
my MakeiCalEvent(targetCal, EventDate, StartTime, EndTime,
FullStartDate, FULLEndDate, ToDoNr, ToDoStatus, ToDoAction,
ToDoActionDetail, Project, Category, ThePriority, Photographer)
How about this?
Set iCalEventList to {targetCal, EventDate, StartTime, EndTime,
FullStartDate, FULLEndDate, ToDoNr, ToDoStatus, ToDoAction,
ToDoActionDetail, Project, Category, ThePriority, Photographer}
my MakeiCalEvent (iCalEventList)
Or possibly making a record out of it and passing the record?
A (The only?) problem with either approach is that you have to
extract the data from the list or record within the sub routine.
-- Michelle
--
The Constitution is no ceiling of liberties. It is a floor of freedoms.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden