Yet Another ClickLine Question
Posted: Thu Feb 26, 2015 1:27 am
Using 7.0.1 Community on Win7 X64 this code in a field:
ignores the delete command completely (about half of the time) or produces:
On 5.5.5 and 6.6.2, the line is deleted correctly the first time, and on all further clicks the delete is ignored, but no error is thrown. If I open the script editor for the field, add an empty line, then close it, it again functions once then is ignored.
It's almost like local variables are actually storing references, and when I do anything with "clickLine", which empties it, also appears to do it to local variables assigned it's value.
My slightly cumbersome workaround is:
Any thoughts? Thanks, Walt
Code: Select all
on mouseUp
local tClickLine
put the clickLine into tClickLine
delete tClickLine
end mouseUp
from the delete command. There are no other scripts running. Sometimes when I close everything and reopen, 7.0.1 ignores the first click, and ALL subsequent clicks on the field produce the error.field "fRGB": execution error at line n/a (Object: stack locked, or object's script is executing)
On 5.5.5 and 6.6.2, the line is deleted correctly the first time, and on all further clicks the delete is ignored, but no error is thrown. If I open the script editor for the field, add an empty line, then close it, it again functions once then is ignored.
It's almost like local variables are actually storing references, and when I do anything with "clickLine", which empties it, also appears to do it to local variables assigned it's value.
My slightly cumbersome workaround is:
Code: Select all
on mouseUp
local tClickLine
put word 2 of the clickLine into tClickLine
delete line tClickLine of me
end mouseUp