Alrightty then! I'm getting another error. This is what I'm trying to do:
// i create the session structures if they do not already exist
if (NOT StructKeyExists(session, "MyStructure")){
session.MyStructure=StructNew();
session.MyStructure.Temp=StructNew();
session.MyStructure.DaRealDeal=ArrayNew(2);
}
// i check the structure for the current FuseAction
if (NOT StructIsEmpty(session.MyStructure.Temp) AND
StructKeyExists(session.MyStructure.Temp, attributes.FuseAction)){
arrayLen=ArrayLen(session.MyStructure.DaRealDeal) + 1;
session.MyStructure.DaRealDeal[arrayLen][1]=attributes.FuseAction;
session.MyStructure.DaRealDeal[arrayLen][2]=session.MyStructure.Temp[attributes.FuseAction];
}
I'm getting the error: "Error resolving parameter SESSION.RFAS.TEMP", which is being
thrown when i check MyStructure.Temp (which should be already set up) for the current
FuseAction.
Am I going crazy or is my server screwing me over, I thought I had structures licked
(a long time ago) and all of this is completely wiggin me out. Am I doing something
wrong? Is there a better way to see if a structure exists? All you have to do is
gimme the word, and I will go and put a bullet in that damn server right now (Win2K
Server, CF5)...
Tyler Silcox
email | [EMAIL PROTECTED]
----- Original Message -----
From: "Tyler Silcox" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 5:21 PM
Subject: Is this a bug (or just a session thing)>>>
I'm trying to get the length of an array set in a session structure and ColdFusion
just is not playing fair.
This is what I have:
session.MyStructure=StructNew();
session.MyStructure["Temp"]=StructNew();
session.MyStructure["DaRealDeal"]=ArrayNew(1);
#ArrayLen(session.MyStructure["DaRealDeal"])#
and it's throwing me the following error:
"The expression has requested a variable or an intermediate expression result as a
simple value, however, the result cannot be converted to a simple value. Simple values
are strings, numbers, boolean values, and date/time values. Queries, arrays, and COM
objects are examples of complex values."
But the kooky thing is: it works just fine if I'm using the request scope...who knows->
(ps: everything's locked down correctly, i just gave you the bare-bones version)
Tyler Silcox
email | [EMAIL PROTECTED]
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists