Re: Persistence of properties in AppleScripts within FileMaker Pro scripts
Re: Persistence of properties in AppleScripts within FileMaker Pro scripts
- Subject: Re: Persistence of properties in AppleScripts within FileMaker Pro scripts
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 04 Mar 2003 13:04:12 -0800
On 3/4/03 12:25 PM, "John Delacour" <email@hidden> wrote:
>
> This looks interesting, John.
>
>
It's years old. It's been on my site for at least 3 years.
>
>
> I think you would have to pre-define _record
>
> in the calling script, or the first call to set 'my _record' will error.
>
>
I don't understand. Please explain.
My error. I recently ran into a problem where a script errored when I
referred to 'my' var and I hadn't previously defined var. It must have been
a special case of some sort. Testing now, I see that using 'my' with an
undefined and undeclared variable, even in a handler, implicitly makes it a
global variable without error. If I ever work out what circumstances
produced the problem I'll come back.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.