Creating a catch-all for unknown handlers
Ken Ray
kray at sonsothunder.com
Sun Dec 12 21:56:56 EST 2004
On 12/12/04 5:05 PM, "Alex Tweedly" <alex at tweedly.net> wrote:
>> Very nearly but not quite - Gordon's first email on a related thread was
> about providing and using this in a library stack - so presumably these
> values should be retrievable from any stack within a multi-stack
> application. Make the tiny change to
>
>> set the client.address.zip of stack "everywhere" to "90034"
>
> where "everywhere" is the name of the library stack, where other stacks
> must first "start using" it, and that should be what is needed.
True, but for a library, it might be better served by an accessor function:
put libMyLib_GetZip() into tZip
and in the library:
function libMyLib_GetZip
return (the client.address.zip of this stack)
end libMyLib_GetZip
Of course, Richard's comments about dot notation not withstanding...
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list