dataGrid - set the dgData[TRUE] to tText

klaus at major.on-rev.com klaus at major.on-rev.com
Wed Jul 8 08:55:37 EDT 2009


Hi Treovor,

> On Jul 8, 2009, at 4:23 AM, Shao Sean wrote:
>
>> should the following not work? line 1 "moo" and "cow" would be the  
>> labels of the columns and line 2 "pig" and "oink" would be the data  
>> for each of the columns.. all i get is an empty data grid..
>>
>> on mouseUp
>> set the dgText[TRUE] of group "DataGrid" to "moo" & TAB & "cow" &  
>> LF & \
>>        "pig" & TAB & "oink"
>> end mouseUp
>
> In the code above "moo" and "cow" would have to be the name of the  
> columns. The columns would have to already exist if you are passing  
> in the names. Do they?

This does not work, but should, right?

on mouseUp
    put "moo,cow" into tCols
    put "moo moo" & TAB & "cow cow" & CR & "pig" & TAB & "oink" into  
tContent
    set the dgtext[true] of grp "DataGrid" to tCols & CR & tContent
end mouseUp

???

> Regards,
>
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> www.bluemangolearning.com    -    www.screensteps.com

Best

Klaus

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







More information about the use-livecode mailing list