
Welcome Guest
|
#1
|
|||
|
|||
|
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? |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |





