• 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: Shortening variable list passed onto subroutines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Shortening variable list passed onto subroutines
      • From: Mark Lively <email@hidden>
References: 
 >Shortening variable list passed onto subroutines (From: Jay Louvion <email@hidden>)

  • Prev by Date: Re: As Text Work-Around Broken
  • Next by Date: Re: Shortening variable list passed onto subroutines
  • Previous by thread: Shortening variable list passed onto subroutines
  • Next by thread: Re: Shortening variable list passed onto subroutines
  • Index(es):
    • Date
    • Thread