Working with csv files that are 5000 lines or more

Brian Yennie briany at
Wed Apr 9 21:04:22 EDT 2008


Try this revised script with "repeat for each":

on mouseUp
   set cursor to watch
   put cd fld "test" into tempvar
   set the itemDel to tab
   put 0 into addvar
   repeat for each line L in (line 2 to -1 of tempvar)
     if item 15 of L is "FL" then add 1 to addvar--simple test for speed
   end repeat
   answer addvar
end mouseUp

Brian Yennie

More information about the Use-livecode mailing list