var someObject:Object = ... your object ...;
var arr:Array=[];
for(var key:String in someObject)
{
arr.push(someObject[key]);
}
HTH,
Ian
On 7/8/06, Graham Pearson [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Does anyone have a function or a bit of code that will
Whoops, sorry - misread. I assumed you wanted to turn it into an
array, not a string.
That being the case, add one line to my code:
var someObject:Object = ... your object ...;
var arr:Array=[];
for(var key:String in someObject)
{
arr.push(someObject[key]);
}
var list:String=arr.join(,);
On
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Does anyone have a function or a bit of code that will take an object
and turn it into a comma separated list. I have an object that is being
pulled from a listbox and want to take the data values of this object
and turn it into a comma separated
3 matches
Mail list logo