pFirstLineContainsHeaders is being ignored in DataGrid
Klaus on-rev
klaus at major.on-rev.com
Tue Dec 11 12:08:16 EST 2012
Addition;
Am 11.12.2012 um 17:27 schrieb Klaus on-rev <klaus at major.on-rev.com>:
> Hi Roger,
>
> Am 11.12.2012 um 17:23 schrieb Roger Eller <roger.e.eller at sealedair.com>:
>> ...
>> 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!
this parameter can be TRUE or FALSE or just empty (= false)
> So this will work:
> ...
> set the dgText [TRUE] of grp "DataGrid" to URL ("file:" & it)
> ...
Best
Klaus
--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com
More information about the use-livecode
mailing list