Re: [flexcoders] Re: ArrayCollection to Delimited String

2009-06-09 Thread Angelo Anolin
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

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-09 Thread Tim Hoff
@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

Re: [flexcoders] Re: ArrayCollection to Delimited String

2009-06-08 Thread Johannes Nel
-- *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

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-08 Thread Tim Hoff
. 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

Re: [flexcoders] Re: ArrayCollection to Delimited String

2009-06-07 Thread Angelo Anolin
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

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-05 Thread Tim Hoff
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

[flexcoders] Re: ArrayCollection to Delimited String

2009-06-04 Thread Tim Hoff
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 )