Creating a catch-all for unknown handlers
Gordon
gwalias-rev at yahoo.com
Sun Dec 12 15:44:52 EST 2004
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 or a
function would normally be.
e.g. instead of writing:
put getGlobal("client.address.zip") into myDatabase
you could use:
put client.address.zip into myDatabase
catching the thrown error and looking for this name in
a list of customproperties that would be globally
available within the program.
Best
Gordon
More information about the use-livecode
mailing list