Datagrid SetDataOfIndex Error
lists at mangomultimedia.com
Wed Apr 22 17:48:31 EDT 2009
On Apr 22, 2009, at 5:43 PM, Josep wrote:
> Yes, this work perfectly.
> I need to perform some operation over some data cols, so what is
> use SetDataOfIndex over each value or first make the operations and
> update the entire line with SetDataOfLine?
SetDataOfIndex and SetDataOfLine actually do the same exact thing,
just with different targets (index vs. line). If you want to update
all columns at once you could do this:
put the dgDataOfIndex[ theIndex ] into theArrayA
## update column values in array
-- put "new value" into theArrayA["col 1"]
-- put "new value" into theArrayA["col 2"]
set the dgDataOfIndex[ theIndex ] to theArrayA
The above syntax will update the internal data of the data grid and
refresh the display.
SetDataOfIndex will not refresh the display. You have to call
Blue Mango Learning Systems
www.bluemangolearning.com - www.screensteps.com
More information about the Use-livecode