for the pointers. Good to learn a lot lot more.
From: Tim Hoff timh...@aol.com
To: flexcoders@yahoogroups.com
Sent: Tuesday, 9 June, 2009 0:05:49
Subject: [flexcoders] Re: ArrayCollection to Delimited String
Good point. I suppose that you could throw in some regex
@yahoogroups.com
Sent: Tuesday, 9 June, 2009 0:05:49
Subject: [flexcoders] Re: ArrayCollection to Delimited String
Good point. I suppose that you could throw in some regex to strip that
character out of the objects before concatenating. It's an edge case
though. Pipe delimited strings are common
--
*From:* Tim Hoff timh...@aol.com
*To:* flexcoders@yahoogroups.com
*Sent:* Friday, 5 June, 2009 14:05:46
*Subject:* [flexcoders] Re: ArrayCollection to Delimited String
Well, let's not assume anything:
private *function* parseArrayCollectio n():*void*
{
*var
.
Regards,
Angelo
--
*From:* Tim Hoff timh...@...
*To:* flexcoders@yahoogroups.com
*Sent:* Friday, 5 June, 2009 14:05:46
*Subject:* [flexcoders] Re: ArrayCollection to Delimited String
Well, let's not assume anything:
private *function
Hi Tim,
Thanks for the tip(s). Was able to make this thing work out.
Regards,
Angelo
From: Tim Hoff timh...@aol.com
To: flexcoders@yahoogroups.com
Sent: Friday, 5 June, 2009 14:05:46
Subject: [flexcoders] Re: ArrayCollection to Delimited String
Well
Well, let's not assume anything:
private function parseArrayCollection():void
{
var myString:String = ;
for each ( var myObject:Object in myAC )
{
myString += myObject.label + | + myObject.data + ||;
}
trace(myString);
}
-TH
--- In
Assuming that you don't want the trailing pipes:
private function parseArrayCollection():void {
var myString:String = ;
for each ( var myObject:Object in myAC )
{
myString += myObject.label + | + myObject.data;
if ( myAC.getItemIndex( myObject )
7 matches
Mail list logo