Mike
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of polestar11
Sent: Friday, July 28, 2006 5:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ArrayCollections
Hi Jeremy
I have also had the problem in the past of the 'as X'
my understanding of it is as follows.
basically, its the same thing except when you are dealing with
exceptions. if the cast doesnt work out, you get an exception (which u
could handle in a try catch). if the 'as' doesnt work out, it returns
a null (so u would use an if test to handle it. eg if
Hi Jeremy
I have also had the problem in the past of the 'as X' expression
returning null. To solve it you dont have to create a new
ArrayCollection object, but only cast it as one:
> countries = ArrayCollection(event.result.countries)
I dont know what the difference is between each:
myData as
3 matches
Mail list logo