> On Jan 11, 2004, at 1:12 AM, Taco Fleur wrote:
> > application.page.index
> > application.page.index.blog application.page.index.blog.archive
>
> if ( structKeyExists(application.page,"index") and
> structKeyExists(application.page.index,"blog") and
> structKeyExists(application.page.index.blog,"archive") ) {
> // application.page.index.blog.archive exists
> }
>
> > application.page[ url.page ]
> > application.page["index.blog"]
The above is hardcoded, as I said the reference is dynamic.
i.e. application.page[ url.page ]
Which translates into application.page["index.blog"]
> Bear in mind that is not equivalent to:
>
> application.page.index.blog
>
> When you say:
>
> application.page[ "index.blog" ]
I realize that, I was only showing what it would/could evaluate to.
> then you are referring to a single element of the struct
> application.page which just happens to have a key of
> "index.blog" - you
> are not referring to the "blog" element of the struct
> application.page.index (which is what the first reference is).
>
> > 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
>
> Again, that is a struct element in application.page rather than an
> element "archive" of the struct application.page.index.blog
That�s why I said it could not work.
Anyway, I could do evaluate("application.page." & url.page) I could work
with that, but there are still complications then, when one level does not
exist for example.
It's a bit complicated, and I probably did not explain myself very well, I
should have waited before consulting the list.
> Sean A Corfield -- http://www.corfield.org/blog/
>
> "I have always wished that my computer would be as easy to use as my
> telephone. My wish has come true - I no longer know how to use my
> telephone."
> -- Bjarne Stroustrup
>
>
> ---
> 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
---
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