Whether it is a reserved word or not had nothing to do with why it didn’t work in this particular instance.

 

It didn’t work because the same variable name was being used in two places.

 

var result:Array = result[0];

 

This line was overwriting every value in the array except for the first one.

 

 

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Wednesday, August 31, 2005 6:50 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Referencing results from NetConnection Debugger

 

Hey man, don’t feel bad, the goldurn compiler really should catch reserved words!

Tracy

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, August 31, 2005 6:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Referencing results from NetConnection Debugger

 

That was it!! One day, my brain will inevitably explode from a syntax error...:-)

 

Many thanks!

Darius

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of Kelly R
Sent: Wednesday, August 31, 2005 12:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Referencing results from NetConnection Debugger

Dont name your internal variable result:

var result:Array = result[0];

Name it something else like myResult:

var myResult:Array = result[0];

 


From: "coldfs" <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Referencing results from NetConnection Debugger
Date: Wed, 31 Aug 2005 17:43:43 -0000

Hi,

Here's the RO result using the NetConnection Debugger.  I have a
function that can always read the first array element, but the others
aren't readable.  I've tried every combination but can't reference
the other array elements.  I would greatly appreciate any help?

Thanks,
Darius

--AS function--------------------

private function handleSearchResult(result:Array):Void{
/this works, displays 'Inactive'
var result:Array = result[0];
alert(result["CStatus"]);

//this doesn't work, blank value
var result:Array = result[1];
alert(result["CStatus"]);

--NetConnection Debugger----------

Result (object #2)
.....[0] (object #3)
..........AStatus: ""
..........CStatus: "Inactive"
..........PStatus: ""
..........BirthDate (object #4)
..............."Tue May 1 01:00:00 GMT-0700 2001"
.....[1] (object #5)
..........AStatus: ""
..........CStatus: "Active"
..........PStatus: ""
..........BirthDate (object #6)
..............."Sat May 7 01:00:00 GMT-0700 2000"
.....[2] (object #7)
..........AStatus: ""
..........CStatus: "Inactive"
..........PStatus: "Never"
..........BirthDate (object #8)
..............."Sun Feb 2 00:00:00 GMT-0800 1998"
.....[3] (object #9)
..........RecordCount: 1





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


SPONSORED LINKS

Web site design development

Software design and development

Macromedia flex

Software development best practice

 

 

 


YAHOO! GROUPS LINKS

 

 


 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Software design and development Macromedia flex
Software development best practice


YAHOO! GROUPS LINKS




Reply via email to