1 Reply Latest reply on Nov 23, 2011 8:40 AM by nikos101

    array collection to a csv string?

    nikos101 Level 2

      Anyone wrote a util for converting a arraycollection to a csv string?

        • 1. Re: array collection to a csv string?
          drkstr_1 Level 4

          public static function getCSV(list:IList):String

          {

               var s:String = "";

               for(var i:int=0; i < list.length; i++)

               {

                    s += list.getItemAt(i).toString();

                    if(i < list.length-1)

                         s += ", ";

               }

              

               return s;

          }

          1 person found this helpful