Re: Can someone please explain (Language Guide)
Re: Can someone please explain (Language Guide)
- Subject: Re: Can someone please explain (Language Guide)
- From: Axel Luttgens <email@hidden>
- Date: Thu, 10 Jan 2008 09:56:48 +0100
On 10/01/08 9:20, Skeeve wrote:
I'm having difficulties understanding something on
http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/AppleScript.d9.html#29901
(quote) "directParameterVariable (an identifier) is a parameter
variable (also called a formal parameter) that represents the actual
value of the direct parameter. You use this identifier to refer to the
direct parameter in the body of the subroutine definition. As with
application commands, the direct parameter must be first."
can someone please give me an example definition and an example call
of such a subroutine/handler?
Not really useful in this case, but should give the idea:
on getItem of ThisList at Pos
return item Pos of ThisList
end getItem
getItem of {"a", "b", "c"} at 2
--> "b"
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden