Hi Eric,

The code looks OK to me. A structure in CF is really an associated array,
and Cf only support for three dimensional arrays. Your code nested four
structures, so I am not sure if this is the problem. But I remember in the
CF advanced training course the instructor said by creating nested
structures or arrays you can go out of the limitation, but I myself  never
tried it out.
Just a thought, because the error exactly happened at the fourth structure.
If you solved the problem , please post the solution.
Thanks.

Sima



                                                                                       
       
                    "Eric                                                              
       
                    Gilbert"             To:     CF-Talk <[EMAIL PROTECTED]>   
       
                    <ericg@stoneg        cc:                                           
       
                    round.com>           Subject:     RE: Nested Structures and Arrays 
-      
                                         Addendum                                      
       
                    11/16/00                                                           
       
                    10:34 AM                                                           
       
                    Please                                                             
       
                    respond to                                                         
       
                    cf-talk                                                            
       
                                                                                       
       
                                                                                       
       



Sorry I miss typed the code, what I meant was

<cfscript>
           Session.Intake = structnew();
           Session.Intake.URLToken = URLToken;
           Session.Intake.Guardian = arrayNew(1);
           Session.Intake.Guardian[1] = structnew();
           Session.Intake.Guardian[1].Employer = structnew();
           Session.Intake.Guardian[1].Employer.Name = "";
           Session.Intake.Guardian[1].Employer.Address = structnew();

           //Works great till here
           Session.Intake.Guardian[1].Employer.Address.StreetAddress = "";
</cfscript>

I still get the error:
           "The member "EMPLOYER.ADDRESS" in dimension 1 of object
"Session.Intake.Guardian" cannot be found. Please, modify the member name"

-----Original Message-----
From: Christopher Olive, CIO [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 7:17 AM
To: CF-Talk
Subject: RE: Nested Structures and Arrays


you haven't declared Session.Intake.Parent as anything yet.

chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com



-----Original Message-----
From: Eric Gilbert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 9:01 PM
To: CF-Talk
Subject: Nested Structures and Arrays


I'm encountering something odd, and I'm not sure if it is a bug with the
version of CFServer I'm using or a deeper CF language issue.

I get the error:
           "The member "EMPLOYER.ADDRESS" in dimension 1 of object
"Session.Intake.Parent" cannot be found. Please, modify the member name"

when I try to execute the following script block (with proper
locking......)

<cfscript>
           Session.Intake = structnew();
           Session.Intake.URLToken = URLToken;
           Session.Intake.Guardian = arrayNew(1);
           Session.Intake.Guardian[1] = structnew();
           Session.Intake.Guardian[1].Employer = structnew();
           Session.Intake.Guardian[1].Employer.Name = "";
           Session.Intake.Guardian[1].Employer.Address = structnew();

           //Works great till here
           Session.Intake.Parent[1].Employer.Address.StreetAddress = "";
</cfscript>


I'm running PWS on Win98 with a developer's edition of CFServer.

Server Product ColdFusion Server
 Version 4, 0, 0, 0




Eric Gilbert
Developer
Stone Ground Solutions
560 Sutter St., Suite 400
San Francisco, CA 94102
415.252.0600 voice
415.252.0123 fax
www.stoneground.com

----------------------------------------------------------------------------

--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to
[EMAIL PROTECTED]

----------------------------------------------------------------------------

--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to
[EMAIL PROTECTED]

------------------------------------------------------------------------------------------------

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to
[EMAIL PROTECTED]




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to