LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-04-2009, 11:26 AM
gylippus gylippus is offline
Registered User
 
Join Date: Jun 2007
Posts: 19
Rep Power: 0
gylippus is on a distinguished road
Datagrid Component Output to Array/Object

Actionscript:
for (var i = 0; i < datagrid.length; i++) {
var gradient:Object = datagrid.getItemAt(i).Value;
trace(gradient.toString());

I have a datagrid called datagrid. Users can input data into a column called Value. They input a gradient number to correspond with a country in a column called Country. I want to retrieve those values and put them into a string like this: Number 1, Number 2, Number 3, etc...

The above loop returns:
100
90
80

in a vertical column. When I use the gradient variable in another variable it only returns the last number. I thought toString would work because it would return 100, 90, 80 but it didn't. I tried using the array variable but that didn't work. I am sure this is a simple problem, can someone please help me?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
List component dataProvider for datagrid gylippus Actionscript 1 Components 3 03-10-2009 02:16 AM
List Component Output to Array (Flash 8) gylippus Newbies 4 01-31-2009 12:40 PM
Getting the nodename in a tree component as output? Jakobben Actionscript 2.0 0 10-14-2008 06:22 AM
linking listbox to datagrid component madhava Actionscript 2.0 Components 4 12-14-2004 11:32 AM
Datagrid Component bacro Flash Components v0 2 03-14-2004 09:49 AM




All times are GMT. The time now is 11:10 PM.