Table DataGrid AddData Bug or documentation error?

Klaus on-rev klaus at major.on-rev.com
Fri Nov 9 05:53:10 EST 2012


Hi friends,

I have a problem with one of my datagrids.

1. It is a TABLE with a custom column behavior.
2. When I populate it with an ARRAY (set the DGDATA of ...), everything is fine.
3. When I want to add data I use: 
...
dispatch "AddData" to grp "dg" with tArray
...
to add the new data at the end.

But nothing gets displayed?

Debugging the custom behavior "on filliData tData" in that case showed me
that tData was empty when using "AddData" with an array.

"Printkeys" finally showd me that the new data is added as an ARRAY? although the docs
let me think this should work with a TABLE datagrid:
.....................................................
AddData

- AddData pDataArray, pLine
- Use this command to add data to the data grid after you have already populated it by setting the dgData or 
DGTEXT.
..........................................................
DGTEXT lets me think it should work with a table, too!
So is this a bug or wrong documentation and I need to use "AddLine" with TAB delimited text?

Thanks for any pointers!


Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com





More information about the use-livecode mailing list