Datagrid - GetDataForLine

Mark Smith Mark_Smith at
Fri Dec 2 18:03:26 EST 2011

Marty Knapp wrote
> In my scenario, how do I use the "GetDataForLine" command?
> Am I wasting time by converting my tab-delimited file to an array?

Hi Marty, I am no datagrid expert (more or less just stumble onto solutions
that work for me) and I am not familiar with the technique you are using but
I have used the following script to "read" a tab delimited file into a

put url ("file:" & thefilepath) into theData
set the dgText of group "DataGrid 1" to theData 

This assumes that the first line of the file is data, and not column names.
If it is column names change the 2nd line to:

set the dgText[true] of group "DataGrid 1" to theData 

Hope that is helpful...

-- Mark

View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the Use-livecode mailing list