Add data to a dg Table
Andre.Bisseret at inria.fr
Mon Apr 27 05:11:33 EDT 2009
I just tried that from the docs but without success :-((
- AddLine pText, pColumns, pLine
- Use this command to add tab delimited text to the data grid after
you have already populated it by
setting the dgData or dgText.
pText is tab delimited text to add to the data grid. pColumns is a cr
delimited list of column names
that text items map to. pLine is the line number where it should be
added. All data appearing at or
after pLine will be shifted down 1. You will not overwrite any data.
If pColumns is empty then the
"columns" property of the data grid is assumed. If pLine is empty then
the data will be added to the
end of the existing data.
Anyway up to now, I am using the following which works :
put "xx" & tab & "yy" & tab & "zz" ...etc... into tLine
put the dgText of grp "DataGrid 1" into tContent
put cr & tLine after tContent
set the dgtext of grp "DataGrid 1" to tContent
Best regards from Grenoble
Le 26 avr. 09 à 12:00, Yves COPPE a écrit :
> Hi List,
> Let-s suppose I have a datagrid with 5 columns and 3 rows
> I'd like to add trhoug a script a 4th line of data to the datagrid
> How can I do hat ?
> Thank you.
> Yves COPPE
> yvescoppe at skynet.be
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode