empty clickLine
Posted: Sun Sep 21, 2014 11:54 pm
At least, I assume it must be returning empty since LiveCode isn't coming up with any errors and it recognizes all of the words I used. But, clickLine should be empty in this case, right?
This is in a locked field with a few lines of text: (I grabbed the commented code thinking I could just modify it and added the variables when I got frustrated)
I click on the field and I watch everything happen like it's supposed to except that "the clickLine" doesn't return anything. Shouldn't it give me the line number?
"select the clickLine" doesn't seem to matter
but "the value of the clickLine" does return the expected string (line number of the field number)
This is in a locked field with a few lines of text: (I grabbed the commented code thinking I could just modify it and added the variables when I got frustrated)
Code: Select all
on mouseup
-- select the clickLine
-- put the value of the clickLine after field "theField"
-- hide me
-- put empty into me
-- focus on card field "answer
put 4 into tVar
--select the clickLine
put the clickLine into tLine
put the value of the clickLine into tLine2
put 5 into tVar
put tLine into tLine2
put 6 into tVar
put tVar into tLine
end mouseup
"select the clickLine" doesn't seem to matter
but "the value of the clickLine" does return the expected string (line number of the field number)