OK, here's the
thing.
I know to use
structKeyExists instead of isDefined, my problem with structKeyExists is that
the structure reference is dynamic, i.e.
application.page[
url.page ]
so I could check if
the key exists on the first level, i.e. it is structKeyExists(application.page["index"],
"description")
Now if we go another level down in the site it
is
application.page[ url.page ]
application.page["index.blog"]
If we would go down
another level it would be
application.page["index.blog.archive"] etc. as you can see it can
not work with
structKeyExists
At the moment I just
catch the error with a cftry, but it's not the cleanest way of doing it I
guess.
Another funny thing
is happening, for example I have two references to a key within a cftry block,
and they do not exist, i.e.
application.page.index.blog.description
If I do not have a
cftry around each call it still generates an error. I have never seen that
before, normally (As far as I can remember) it just catched any error within a
cftry, whether that is one or two errors.
Taco
Fleur
0421 851
786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn
Tell me and I will forget
Show me and I will remember
Teach me and I will learn
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
