Creating a catch-all for unknown handlers
Ken Ray
kray at sonsothunder.com
Sun Dec 12 17:41:23 EST 2004
On 12/12/04 2:41 PM, "Gordon" <gwalias-rev at yahoo.com> wrote:
> Dear Revolutionaries
>
> Is this feasible or just a crazy notion ...?
>
> Is there a way to create a catch-all backscript that
> would catch any "unknown handler" error and then look
> through a list of e.g. custom properties to see if it
> could be evaluated, and then returning the value.
>
> This would make it possible to create custom
> properties with names like client.address.zip and then
> just use them in your code where a handler would
> normally be.
Well, you can do this now:
set the client.address.zip of this stack to "90034"
(later:)
put the client.address.zip of this stack
--> 90034
Does this not do what you want?
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