Code: Select all
For example, let's say I have a field called 'Beatles' with four lines with one word on each line:
GEORGE
RINGO
JOHN
PAUL
and in its script:
Code: Select all
on mouseup
put value (the clickline) into theName
if theName is george then answer theName && "HARRISON"
else
if theName is john then answer theName && "LENNON"
else
if theName is paul then answer theName && "McCARTNEY"
else
if theName is ringo then answer theName && "STARR"
end if
end if
end if
end mouseup
I guess the logical thing to do would be to include handlers like 'on ringo' to be triggered by 'send ringo to fld Bealtes'.
But I would like something like:
Code: Select all
send mouseup to word "Ringo" in fld "beatles".
In summary, I would like to know if there is a way to 'direct' a mouseup to a word or a specific line.
Thank you very much.