Newbie Data Grid question
Trevor DeVore
lists at mangomultimedia.com
Mon Dec 14 09:02:35 EST 2009
On Dec 14, 2009, at 5:11 AM, Andre.Bisseret wrote:
> Your are right ; I just made a new stack with a data grid "dGrid"
> and a field "source"
> created the columns manually in the inspector (col 1, col 2 etc)
> In the field, the first tab delimited line includes the names for
> the columns.
>
> Then
>
> set the pFirstLineContainsHeaders of grp "dGrid" to true -- or,
> yes, put true into pFirstLineContainsHeaders as well
> put fld "source" into tData
> set the dgText ["pFirstLineContainsHeaders"] of group "Dgrid" to
> tData
>
> does not work as expected : the columns names keep being "Col 1, Col
> 2 etc"
> and the first line of tData keeps being the first line of Dgrid :-((
The syntax isn't correct in this example. It should be:
set the dgText[true] of group "Dgrid" to tData
I just tested to verify that using the correct syntax does work - and
it does :-)
--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com
More information about the use-livecode
mailing list