At 04:39 PM 09/07/2001 +0100, you wrote:
>This works...
>
><CFPARAM NAME="session.Account" DEFAULT="#StructNew()#">
><CFPARAM NAME="session.Account.LoggedIn" DEFAULT="no">
>
>but this throws an error ("Invalid token found on line 2 at position 41" -
>the apostrophe after LoggedIn)...
>
><CFPARAM NAME="session.Account" DEFAULT="#StructNew()#">
><CFPARAM NAME="session.Account["LoggedIn"]" DEFAULT="no">
Did you try escaping (doubling) the characters? I'm not sure if it will
work, but:
<CFPARAM NAME="session.Account[""LoggedIn""]" DEFAULT="no">
>This doesn't throw an error, but dumping the session variable to screen
>doesn't display a key called LoggedIn in the session variable...
Wouldn't that be because 'loggedin' is not a session variable? It's part
of a structure that is a session variable.
Session variables are a structure by definition. Do you really need a
structure within a structure?
><CFSET variables.Key = "LoggedIn">
><CFPARAM NAME="session.Account" DEFAULT="#StructNew()#">
><CFPARAM NAME="session.Account[variables.Key]" DEFAULT="no">
>
>Is it possible to use the array style notation (scope.structure["key"]) with
>CFPARAM?
--
Jeffry Houser | mailto:[EMAIL PROTECTED]
AIM: Reboog711 | ICQ: 5246969 | Fax / Phone: 860-223-7946
--
I'm looking for a room-mate in the Hartford CT area, starting in September
--
http://www.instantcoldfusion.com | My Book: Instant ColdFusion 5.0
--
My Band: Far Cry Fly, Alternative Folk Rock
http://www.farcryfly.com | http://www.mp3.com/FarCryFly
--
My company: DotComIt, LLC
database driven web data using ColdFusion
--
I tried all my tricks, I tried to steal a kiss...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists