I just tried the first lesson from the data grid lessons by Livecode.
Put a grid and a button on a card.
Then put the following in the mouse up
Code: Select all
## 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" to theText
When I put a breakpoint on the last line I do see it go to there so it must be moving over the lines.
Any help?
Marc