Re: what does this error mean?
Re: what does this error mean?
- Subject: Re: what does this error mean?
- From: Axel Luttgens <email@hidden>
- Date: Thu, 15 Jul 2010 09:50:01 +0200
Le 15 juil. 2010 à 05:05:11, tom wible a écrit :
> there's the code:
>
> on listTDL()
> if (count of recList) is 0 then ¬
> initRecList()
> set tdl to {}
> set n to 0
> repeat with rec in recList
> set n to n + 1
> if not rec's deleted then ¬
> set end of tdl to rec's toList(n)
> -- log item -1 of tdl
> end repeat
> return tdl
> end listTDL
Hello Tom,
Where exactly does that "The variable rec is not defined" error occur?
When trying to access rec thru "rec's deleted"?
This seems extreeeemely unlikely... ;-)
I would suspect one of the initRecList() and toList() handlers.
Does one of these also make use of a variable named "rec" (possibly indirectly, by calling other handlers)?
And, BTW, what's exactly the scope of rec? Are you sure "rec" is always local throughout your whole script?
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