I have a list where users drag and drop files. (I’m using the Archive Maker example as a template). I have a “CLEAR” button that lets the user clear the list of files once they have been processed. Here is the line of code I’m using to clear the list
delete every data row of data source of table view "files" of scroll view "files" of window "main"
This clears the list but when I make a new list by dragging new files, I get an error because it is trying to find a file from the previous list. Something seems to remember the previous list after the list is cleared.
I’m using this line of code when the user clicks the Clear button. It’s in an “on clicked” handler inside an "if theobject is “Clear” statement.
delete every data row of data source of table view "files" of scroll view "files" of window "main"
This clears the list but when I replace the old list with a new one, it still remembers the old list. I get a “can’t find file oldfile” when oldfile is the first file in the old list. Someone on another board suggested I need to replace the data rows. Does this mean I have to replace each data row that had an entry on the original list?