List Field and Ask Dialog
Magnus von Brömsen
webmaster at studioalice.se
Sat Apr 6 03:43:01 EST 2002
Hello
I have a List Field with some lines of text. When clicking a line I want
the Ask dialog shown, fill in a number and have that number put in (with
a tab) after the last word of the line.
1. This script in the Text Field works:
on mouseUp
put tab & "1" after the last word of the selectedText -- the number
"1" is an test
end mouseUp
2. But if I add the Ask-dialog:
on mouseUp
ask "How many?"
put tab & it after the last word of the selectedText
end mouseUp
I have this error:
Chunk: no target found
--------------------
put tab & it after the last word of the selectedText
--------------------
Value: mouseUp
I have tried a lot of different ways (clickText, clickLine,
selectedLine...) but always the same error: "Chunk: no target found"
Anyone having a solution? An idea? All help will be appreciated!
Thanks.
Magnus von Brömsen
More information about the use-livecode
mailing list