Datagrid - GetDataForLine

Bob Sneidar bobs at twft.com
Fri Dec 2 18:21:39 EST 2011


Prior to this we were discussing how unwieldy this can be with a lot of data. If he has a ton of data, like in the hundreds of thousands or even millions of records, this can take an extraordinary amount of time, hence, the need to bite off a little at a time. 

Bob


On Dec 2, 2011, at 3:03 PM, Mark Smith wrote:

> 
> 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-tp4149394p4150488.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list