Hi Klaus, Thanks for the quick reply, but I still can not get it to work as you describe. I have tried in Revolution 4.0.0, LiveCode 5.5.1, and LiveCode 5.5.2. Without any parameter, the grid is populated without the headers changing. With the parameter [TRUE], the grid is not populated at all.
~Roger On Tue, Dec 11, 2012 at 11:27 AM, Klaus on-rev <kl...@major.on-rev.com>wrote: > Hi Roger, > > Am 11.12.2012 um 17:23 schrieb Roger Eller <roger.e.el...@sealedair.com>: > > > According to this datagrid lesson, this should work but it does not. > Could > > someone please confirm? > > > > > http://lessons.runrev.com/s/lessons/m/datagrid/l/7309-how-do-i-populate-a-data-grid-with-data > > > > on mouseUp > > answer file "Select a Tab Delimited text file:" > > set the pFirstLineContainsHeaders of grp "DataGrid" to true > > set the dgText [ pFirstLineContainsHeaders ] of grp "DataGrid" to URL > > ("file:" & it) > > end mouseUp > > > > The headers remain as "Col 1" "Col 2", etc. > > "pFirstLineContainsHeaders" is not a property of the datagrid, but a > parameter for dgtext! > > So this will work: > ... > set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it) > ... > > > ~Roger > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > kl...@major.on-rev.com > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode