Datagrid - GetDataForLine

Mark Smith Mark_Smith at cpe.umanitoba.ca
Fri Dec 2 18:06:31 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
datagrid


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: http://runtime-revolution.278305.n4.nabble.com/Datagrid-GetDataForLine-tp4149394p4150505.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list