DataGrid Stuff

Trevor DeVore lists at mangomultimedia.com
Tue Jul 13 07:53:36 EDT 2010


On Jul 10, 2010, at 11:31 AM, Roger Guay wrote:

> Many thanks to all who responded to my previous post. Can anyone  
> tell me why this script doesn't work?
>
> on mouseUp
>    ## Create tab delimited data.
>    ## Note that first line has name of columns.
>    ## Providing names tells Data Grid how to map
>    ## data to appropriate columns.
>    put "state" & tab & "code" & cr & \
>             "ALABAMA" & tab & "AL" & cr & \
>             "ALASKA" & tab & "AK" into theText
>
>    ## Let Data Grid know that first line has column names
>    put true into firstLineContainsColumnNames
>    set the dgText [ firstLineContainsColumnNames ] of group  
> "DataGrid 1" to theText
> end mouseUp
>
> This is in the  "How Do I Create My First Data Grid Table" lesson of  
> revLessons.

You skipped the step prior to the code snippet (Customizing Columns)  
where you rename the columns to "state" and "code".

-- 
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