adding information to table cells
Posted: Wed May 06, 2009 4:32 am
I have some time information in column 1 on a table. I wish to add another time in column 2 at a later date, subtract one from the other and put it into column 3. Sounds easy enough but even though I've put set itemdelimiter to tab before the entering the data in column 2 it puts it into column 1 after the existing time and separates it with a comma?
Code: Select all
on mouseUp
if fld "runStart" = "" then
put the time into fld "RunStart"
send mouseup to button "Start Counter"
else
set itemdelimiter to tab
put the time into item 2 of line glineNo of fld "log"
put (item 2 of line glineNo of fld "log") - (item 1 of line glineNo of fld "log") into item 3 of line glineNo of fld "log"
end if
end mouseUp