opensubscriber
   Find in this group all groups
 
Unknown more information…

a : applescript-users@lists.apple.com 17 January 2006 • 11:20PM -0500

Re: Shortening variable list passed onto subroutines
by Michelle Steiner

REPLY TO AUTHOR
 
REPLY TO GROUP




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      (Applescript-users@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/subscriber%40opensubscriber.com

This email sent to subscriber@opensubscriber.c

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.