Datagrid - GetDataForLine

Marty Knapp martyknapp at comcast.net
Fri Dec 2 16:04:05 EST 2011


I'm using a form datagrid and have it successfully working with a tab 
delimited list that I cycle through and create an array, then use the 
FillInData handler in the datagrid to fill it out.

I am now trying to set this up for large amounts of data. I've read the 
brief tutorial in the DG manual about using the "dgNumberOfRecords" and 
"GetDataForLine" but it's geared for accessing data from a database. I 
did look at the sample stack, but again it's geared for database access.

The dgNumberOfRecords should be set to the total number of records in my 
data set, correct?

In my scenario, how do I use the "GetDataForLine" command?

Am I wasting time by converting my tab-delimited file to an array?

I have no database experience and very little knowledge of arrays, so 
please bear with me! Any sample code, or sample stacks are appreciated.

Thanks,
Marty Knapp




More information about the use-livecode mailing list