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)