I have a lot of tab delimited data and I've been using tables to display this data on my card.
A few questions:
1. I get an error "chunk: cannot find background" with the last line of the following code
Is this because I don't have a key set up for each line, or for some other reason?set the itemdel to tab
...
repeat until tCurrentLine > tUpperLimit
put line tCurrentLine of URL("file:" & gName & ".txt") & return into line tCurrentTableLine of tText
add 1 to line tCurrentLine
add 1 to line tCurrentTableLine
end repeat
set the dgText of group "Data Grid" to tText
2. I read in Livecode Lessons that data grids can only operate with keys. Since I don't want to store the keys permanently in the file, could I simply put an ascending integer as the first item of each line I'm preparing to send to the data grid, and then make that column invisible?
3. Basic tables can be edited directly by the user. Is this also true of data grids? If a user were to click on a table cell, it automatically becomes editable, but with data grids this doesn't happen. Then, if a user hits the return key, tabs to the next cell, mouse-clicks another cell or mouse-clicks outside the data grid, how can I indicate to the application that it's time to verify the integrity of the new data and to then update the URL? (I don't even know how to do that last bit with basic tables.)
Thanks for all your help.